+ 1
How to solve the bug for "Tom" ,"Alice" and "Bob"?
How to place on a variable on each name?
4 Antworten
+ 6
aviwe ,
The code you shared doesn't have any error...it is correct..
What issue are you facing...??
I assume,
that you hard-coded it...
try to get the input as user input...
https://code.sololearn.com/cKZmiXf5ojCi/?ref=app
+ 4
aviwe ,
Can you share your attempted code here...?? to view...
And mention the appropriate language in the relevant tag instead of " and input output" and all
+ 1
# Ask the user for input and store it in a variable
name = "Tom"
# Display the user input on the screen
print(name)
0
name="tom"
name="bon"