Python Quizzes

 

 Help authour, Buy PDF Ebook   >>>Click Here<<<

Python Questions and answers

Question 1
What will be the output of the following Python code?
print("abcdef".find("cd"))
A
True
B
2
C
3
D
None of the mentioned
Civics Test Questions answers
Question 1 Explanation: 
The first position in the given string at which the substring can be found is returned.
Question 2

You would use an String to store 4.67

A
True
B
False
Visual arts Questions answers
Question 3

Which operator can be used to compare two values?

A
==
B
><
C
<>
D
=
Current affairs Questions answers
Question 4

3.14159 is _

A
Pi
B
correctchoice A float
C
An integer
D
A string
Public administration Questions answers
Question 5

What are the operators that we had discussed today?

A
Logical
B
correctchoice Membership
C
correctchoice Unary
D
correctchoice Identity
Home science Questions answers
There are 5 questions to complete.

 

 Help authour, Buy PDF Ebook   >>>Click Here<<<