+ 1

Python for beginners section 16.1 (parentheses)

Hi everyone! I am new to Sololearn and python and I am stuck on a certain part, it says: To make the input statement work, it needs to be followed by parentheses. You should recognize this principle from the print statements we covered in module 1. You can then provide a string to input() between the parentheses, producing a prompt message. Any help will be grateful! Thanks

30th Nov 2022, 5:18 PM
Fedale Duncombe
4 Respuestas
+ 2
Fedale Duncombe , please link your code here so that we can see where the issue is.
30th Nov 2022, 5:24 PM
JaScript
JaScript - avatar
0
user_age_input = input() print(user_age_input \n) ''' in this case you create variable and wait user input value, but user does not know what exactly to introduce to him and what the program wants from him ''' # insert this text to code playground
30th Nov 2022, 5:39 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
user_input= input('Hi! Please, enter your age') print('\nYour age is:', user_input) ''' in this case, a hint is provided for the user what exactly he needs to enter ''' # insert this text to code playground
30th Nov 2022, 6:12 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
Hey Yaroslav Vernigora Thanks for your help managed to sort it out now! I had to enter: name = input() print("Hello, " + name)
1st Dec 2022, 9:44 PM
Fedale Duncombe