Computer Science
What is the value of the following expression ?
3 + 3.00, 3**3.0
- (6.0, 27.0)
- (6.0, 9.00)
- (6, 27)
- [6.0, 27.0]
- [6, 27]
Python Tuples
3 Likes
Answer
(6.0, 27.0)
Reason — The value of expression is in round brackets because it is tuple.
3 + 3.00 = 6.0
3**3.0 = 3 x 3 x 3 = 27.0
Answered By
2 Likes
Related Questions
What data type is the object below ?
L = 1, 23, 'hello', 1- list
- dictionary
- array
- tuple
To store values in terms of key and value, what core data type does Python provide ?
- list
- tuple
- class
- dictionary
List AL is defined as follows : AL = [1, 2, 3, 4, 5]
Which of the following statements removes the middle element 3 from it so that the list AL equals [1, 2, 4, 5] ?- del AL[2]
- AL[2:3] = []
- AL[2:2] = []
- AL[2] = []
- AL.remove(3)
Which two lines of code are valid strings in Python ?
- This is a string
- 'This is a string'
- (This is a string)
- "This is a string"