Class 8th
Lesson- 7 ( Statement in Python)
Page :- 121 Exercise ( This is your homework)
Hardwords :- One page leave for hard words ( Find Hard words & write in rough notebook ) .
Question and Answer write in class notebook.
Short Question and Answer :-
Q.1 What is Python ?
Ans:- Python is a programing language. We can create mobile app, website and software using it's code.
Q.2 Who developed Python and When ?
Ans:- Guido Van Rossum developed Python in February 1991
Q.3 Name any four app or website developed in Python. Ab
Ans:- Youtube , Google, Quara and Dropbox is developed using python language.
Q.4 Why Python is most popular then other language ?
Ans:- It is simple to read and write. All codes are written in English meaningful.
Q.5 Name the latest version of Python ?
Ans:- Its latest version is "Python 3.11.1"
Notice :- 👉👉👉👉👉👉👉Make the picture Of Computer( Monitor, Keyboard, Mouse and C.P.U) in one page by using pencil. ( after the short answers)
Question/Answer.
Q.1 What are control statements ?
Ans:- Statements that allow you give to conditions , or to iterate are collectively called control Statement.
Example:- if we needs to prints a name in 100 times so we have to control the program and modify for its task this process is also called control statements .
Q.2 What are the three types of control Statements used in Python ?
Ans:- Type of Control Statement:- There are some type of control statements-
1. Sequential Statements
2. Conditional Statements
3. Iterative Statements
Q.3 What are conditional statements ?
Ans:- These statements helps the control the program to be transferred to a specific location which is depending on the outcomes conditional expression. Conditional always use with two statement it can be True or False . If condition is true then program execute otherwise the other set of statements will executed.
Q.4 Write the syntax of the ' if ' statement .
Ans:- One condition of if statement is .
Your parents allows you go on a trip if your score 80% in final exam
Syntax :-
If < Condtion>:
Statement 1
Statement(n)
Example :- a=int(input(" enter your percentage" ))
If (a>=80) :
print(" You go on trip" )
else :
print(" you don't go on trip")
Output :- (Don't write output )
Q.5 What are 'if......elif.....else' statement used ?
Ans:- We have many condition on our program so we have to use if...elif..else statements. it provided a compact way to perform multiple tests on a condition.
Syntax :- If < condtion1>:
Statement set 1
elif <conditon2>:
Statement set 2
else :
Statement set 3
statement (n)
If you have any question so comment in the comment box.
Gk Quiz on Telegram -
No comments:
Write CommentsPlease ask any question about gk related