0

What is this program needs an input?

foo = input('Enter a number: ') foo

15th Jan 2019, 10:26 AM
ROKESH KUMAR G
ROKESH KUMAR G - avatar
1 Answer
0
foo = input('Enter a number: ') - This line of code asks you (the user) for text. Once you type in text it displays it on screen - foo P.s foo is a variable that represents your text (input) The second line - foo Does the same as print (foo)
15th Jan 2019, 6:52 PM
Danila Karpov
Danila Karpov - avatar