+ 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

11th Sep 2025, 4:42 PM
Luca Galvano
Luca Galvano - avatar
18 Answers
+ 6
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
+ 5
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
+ 5
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
+ 5
Asim Farheen ✴️✴️✴️🤺👿👿 If they follow what you mentioned the tests will fail The inputs must remain empty
12th Sep 2025, 12:41 AM
BroFar
BroFar - avatar
+ 4
name = input("Enter your name: ") print(name) age = input("Enter your age: ") print(age)
11th Sep 2025, 4:46 PM
Justin
Justin - avatar
+ 3
Remove "Stacey". Renove "34". The variables store the values.
12th Sep 2025, 7:10 AM
Lisa
Lisa - avatar
+ 2
name=input() print("name") age=input() print(age)
12th Sep 2025, 1:22 AM
Asim Farheen ✴️✴️✴️🤺👿👿
Asim  Farheen ✴️✴️✴️🤺👿👿 - avatar
+ 2
Just solved, Here we go: #take the username as input and display it name=input() "Stacey" print(name) #take the age as input and display it age=input() 34 print(age)
12th Sep 2025, 6:08 AM
Luca Galvano
Luca Galvano - avatar
+ 1
#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
+ 1
name = input("Enter your name :+1") print(name) age = input("Enter your age :") print(age)
12th Sep 2025, 12:40 AM
Asim Farheen ✴️✴️✴️🤺👿👿
Asim  Farheen ✴️✴️✴️🤺👿👿 - avatar
+ 1
name=input() print("Stacey") age=input() print(34)
12th Sep 2025, 12:42 AM
Asim Farheen ✴️✴️✴️🤺👿👿
Asim  Farheen ✴️✴️✴️🤺👿👿 - avatar
+ 1
name = input("Enter your name :") Print ("Hello", "name",! "Welcome"!) age = input("Enter your age:") Print(age)
12th Sep 2025, 1:16 AM
Asim Farheen ✴️✴️✴️🤺👿👿
Asim  Farheen ✴️✴️✴️🤺👿👿 - avatar
+ 1
Print('Enter your name :") x = input () Print (Hello, 1+x) Print(' Enter your age:") y = input() Print(Hello, 1+y)
12th Sep 2025, 1:21 AM
Asim Farheen ✴️✴️✴️🤺👿👿
Asim  Farheen ✴️✴️✴️🤺👿👿 - avatar
+ 1
Sorry guys but the code does not work. Can anyone solve it? It’s driving me crazy
12th Sep 2025, 6:03 AM
Luca Galvano
Luca Galvano - avatar
0
Your code contains some error. 1. "Stacey" is a invalid syntex 2. print("name") unexpected result (if you want to output the inputted name) 3. 34 is unnecessary. If your aim is to take a name and age as input from user the code should be : name = input() print(name) age = input() print(age)
13th Sep 2025, 8:46 AM
Md Mehedi Hasan
Md Mehedi Hasan - avatar
0
name, age = str(input()), int(input()) print(name, age, sep='\n')
28th Sep 2025, 12:10 PM
Dan
Dan - avatar