Computer Applications
In the following code a = '5'. a is a …………… :
- int
- string
- float
- number
Python Funda
1 Like
Answer
string
Reason — A string literal is always enclosed in single quotes or double quotes.
Answered By
2 Likes
Related Questions
Which statement/function will you use to get value for a variable from keyboard ?
- get
- cin
- raw_input
- raw_in
Which of these is not a Python data type ?
- int
- long
- float
- NUMBER
What is the output of following code ?
print 8 >= 8- 8 >= 8
- False
- True
- Error
What is the output of following code ?
print "8 >= 8"- 8 >= 8
- False
- True
- Error