0

Help me with this doubt, I running this program & the output is y. what has gone wrong.

x=input(' any number from 0-9\n' ) y=str(x) *6 print('y')

8th Nov 2018, 2:59 PM
Thesixfeetvirgo
Thesixfeetvirgo - avatar
2 Respostas
+ 3
It should be: print(y) That way you print the value asigned to the variable y, not the string “y”
8th Nov 2018, 3:18 PM
Diego
Diego - avatar
+ 5
if you want to print variable y you need to remove single quotes. Single quotes is used to print text/char/string
8th Nov 2018, 3:16 PM
Anya
Anya - avatar