+ 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
18 Respuestas
+ 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.
+ 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.
+ 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
+ 5
Asim Farheen ✴️✴️✴️🤺👿👿
If they follow what you mentioned the tests will fail
The inputs must remain empty
+ 4
name = input("Enter your name: ")
print(name)
age = input("Enter your age: ")
print(age)
+ 3
Remove "Stacey".
Renove "34".
The variables store the values.
+ 2
name=input()
print("name")
age=input()
print(age)
+ 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)
+ 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..
+ 1
name = input("Enter your name :+1")
print(name)
age = input("Enter your age :")
print(age)
+ 1
name=input()
print("Stacey")
age=input()
print(34)
+ 1
name = input("Enter your name :")
Print ("Hello", "name",! "Welcome"!)
age = input("Enter your age:")
Print(age)
+ 1
Print('Enter your name :")
x = input () Print (Hello, 1+x)
Print(' Enter your age:")
y = input() Print(Hello, 1+y)
+ 1
Sorry guys but the code does not work.
Can anyone solve it?
It’s driving me crazy
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)
0
name, age = str(input()), int(input())
print(name, age, sep='\n')