x = (6*11+15-30/9*2)/7
print round (x)
What is the output of the following command.
lt = [1,2,3,4,5]
print(lt.count(3))
How can we print and state the type of the code
school = "abcd"
import turtle
t=turtle.Pen()
t.backward(100)
t.penup()
t.tilt(75)
t.isdown()
What will be the output of the following Python code?
>>>t = (1, 2, 4, 3, 8, 9)
>>>[t[i] for i in range(0, len(t), 2)]
What will be the output of the following Python code?
x = "abcdef"
i = "i"
while i in x:
print(i, end=" ")
What will be the output of the following Python code?
for i in range(float('inf')):
print (i)
Which of the following functions can be used to find the coordinated universal time, assuming that the datetime module has already been imported?
In Python, we do not explicitly specify types. The interpreter directly handles the type inference. Consider the following operation:
>>>x = 13 ? 2
The objective is to ensure that the final value of x
is an integer. Select all the options that apply (Python 3.xx).