0

question for 'input()'

* (This is in Module 1 quiz) word = input(enter the words : ) enter the words : cheese * does cheese saved as string? * but there is no no quotes

8th Jan 2018, 12:29 AM
허정현
허정현 - avatar
2 Answers
+ 7
Everything (even numbers) entered using input() is saved as a string. No quotes required.
8th Jan 2018, 12:49 AM
David Ashton
David Ashton - avatar
+ 1
If cheese were typed, word would have the value: “cheese”. The user can’t interact with variables directly, so no quotes needed.
8th Jan 2018, 12:40 AM
Jacob Pembleton
Jacob Pembleton - avatar