0

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

11th Sep 2025, 4:42 PM
Luca Galvano
Luca Galvano - avatar
5 Risposte
+ 1
name = input("Enter your name: ") print(name) age = input("Enter your age: ") print(age)
11th Sep 2025, 4:46 PM
Justin
Justin - avatar
+ 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.
11th Sep 2025, 4:50 PM
Lisa
Lisa - avatar
+ 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.
11th Sep 2025, 5:15 PM
Lisa
Lisa - avatar
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..
11th Sep 2025, 5:07 PM
Luca Galvano
Luca Galvano - avatar
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
11th Sep 2025, 5:15 PM
BroFar
BroFar - avatar