Friday, April 24, 2020

Class 12 Chapter I Python Revision Tour

Python Revision Tour - Some important questions
1 What are the data types in python
   Ans: int,float,str
2. What are the operators in python.
   Ans: 1. Arithmetic operator
            2. Relational Operator
            3. Logical Operator
            4. Assignment Operator
3.What are the conditional statements available in python
Ans:
  1. if else
  2. if elif
  3. nested if4. 
4. What will be output produced by following code.
a,b,c=1,1,1
d=0.3
e=a+b+c-d
f=a+b+c==d
print(e)
print(f)

Ans:
 2.7
 False




No comments:

Post a Comment