+ 1

The task that i Can't solve with m'y answers 👇

# Ask the user for input and store it in a variable name = "tom" name = "alice" name = "bob" # Display the user input on the screen name =input ("tom") name = input ("alice") name = input ("bob")

13th Aug 2023, 6:10 PM
Pythcattt"#lr)
Pythcattt"#lr) - avatar
2 Antworten
+ 5
You use the input() to ask the use to type a value and use the print() to display the value on the screen
13th Aug 2023, 6:28 PM
Aweneg Rooney
Aweneg Rooney - avatar
+ 3
Pythcattt"#lr) , it may be a bit confusing to see multiple names in this exercise. these are only several possible samples. > 1. step: but we only have to get *1 input* from the user and store it to a variable. > 2. step: to output the content of the variable we need to use the print() function. put the variable name (without any quotationmarks) inside the parenthesis of the print() function
14th Aug 2023, 3:34 PM
Lothar
Lothar - avatar