+ 1
Pls help!
#take the username as input and display it name=input() "Stacey" print("name") #take the age as input and display it age=input() 34
5 Antwoorden
+ 1
name = input("Enter your name: ")
print(name)
age = input("Enter your age: ")
print(age)
+ 1
DO NOT write "Stacey". The name is what the user enters and can be different from "Stacey". remove "Stacey".
You are supposed to output the age as well. Use print() to output the the balue stored in the variable "age". DO NOT write "34". The age is what the user and enters. It can be anything.
DO NOT HARD-CODE THE INPUTS.
TAG THE RELEVANT PROGRAMMING LANGUAGE.
+ 1
You are supposed to print the values stored in name and age. Not random values that you came up with.
If I enter Ann and 30, the putput should be Anne and 30, not Stacey and 34.
0
#take the username as input and display it
name=input()
print("Stacey")
age=input()
print(34)
#take the age as input and display it
Still not right..
0
Do not hardcode the name or the age ...
name = input()
age = int(input())
print(name)
print(age)
Do not add anything as Lisa mentioned