Today i did practice of this

Q-1) What is the output of the following code?

valueOne = 5 ** 2
valueTwo = 5 ** 3

print(valueOne)
print(valueTwo)

a)10
15

b)25
125

c)Error: invalid syntax

answer: b

Q-2) What is the output of the following code?

str = "pynative"
print (str[1:3])

a)py

b)yn

c)pyn

d)yna

answer: d

3 Likes

@vaishu.swap10112016

The practice questions which did :-

1 . Your answer is correct, option b

  1. Your answer is incorrect, option b will be the correct option instead of option d.
2 Likes