How to solve the bug for "Tom" ,"Alice" and "Bob"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to solve the bug for "Tom" ,"Alice" and "Bob"?

How to place on a variable on each name?

31st Jul 2023, 5:49 AM
aviwe
aviwe - avatar
4 Answers
+ 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
31st Jul 2023, 6:18 AM
Riya
Riya - avatar
+ 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
31st Jul 2023, 5:57 AM
Riya
Riya - avatar
+ 1
# Ask the user for input and store it in a variable name = "Tom" # Display the user input on the screen print(name)
31st Jul 2023, 6:05 AM
aviwe
aviwe - avatar
0
name="tom" name="bon"
26th Sep 2023, 6:13 AM
Adam Jusus
Adam Jusus - avatar