Computer Science
Which value type does input() return ?
- Boolean
- String
- Int
- Float
Python Funda
2 Likes
Answer
String
Reason — The input() function always returns a value of String type.
Answered By
2 Likes
Related Questions
Which of the following expressions results in an error?
- float('12')
- int('12')
- float('12.5')
- int('12.5')
Which of the following statement prints the shown output below?
hello\example\test.txt- print("hello\example\test.txt")
- print("hello\\example\\test.txt")
- print("hello\"example\"test.txt")
- print("hello"\example"\test.txt")
Which two operators can be used on numeric values in Python?
- @
- %
- +
- #
Which of the following four code fragments will yield following output?
Eina Mina Dika
Select all of the function calls that result in this output
- print('''Eina
\nMina
\nDika''') - print('''EinaMinaDika''')
- print('Eina\nMina\nDika')
- print('Eina
Mina
Dika')
- print('''Eina