if-elif-else statement Python:
Python Basic Tutorial (Hindi):
This video lecture is second part of Flow Control where I have explained about if statement. I have tried to make it as practicle as possible.
I hope through this video, I was able to explain in plain Hindi language. If you still have any doubts, please feel free to write in the comment box. I will definitely answer your questions.
ASSIGNMENTS:
1. Take values of length and breadth of a rectangle from user and check
if it is square or not.
2. Take two int values from user and print greatest among them.
3. A shop will give discount of 10% if the cost of purchased quantity is more than 1000.
Ask user for quantity
Suppose, one unit will cost 100.
Judge and print total cost for user.
4. A company decided to give bonus of 5% to employee if his/her year of service is more than 5 years.Ask user for their salary and year of service and print the net bonus amount.
5. A school has following rules for grading system:
a. Below 25 - F
b. 25 to 45 - E
c. 45 to 50 - D
d. 50 to 60 - C
e. 60 to 80 - B
f. Above 80 - A
Ask user to enter marks and print the corresponding grade.
6. Take input of age of 3 people by user and determine oldest and youngest among them.
7. A student will not be allowed to sit in exam if his/her attendence is less than 75%.
Take following input from user Number of classes held Number of classes attended. And print percentage of class attended Is student is allowed to sit in exam or not.
Modify the above question to allow student to sit if he/she has medical cause.
Ask user if he/she has medical cause or not ( 'Y' or 'N' ) and print accordingly.
8. Write a Python program to find those numbers which are divisible by 7
and multiple of 5, between 1500 and 2700 (both included).
please post your solutions on comment box or email me.
Table of Contents:
1. How to install Python 3 on Windows: • PYTHON TUTORIAL IN HINDI - How to install ...
2. Variables: • Python 3 Tutorial in Hindi : Variables
3. Strings - I: • Python 3 Tutorial in Hindi : Strings - I
4. String - II: • Python 3 Tutorial in Hindi : Strings - II
5. User Input: • Python 3 Tutorial in Hindi : User Input
6. Dictionary: • Python Crash Course | Dictionary Hindi Tut...
7. Function: • Python 3 - Function
8. Basic Python Exercises: • Python Basic - I Exercises Practical | Py...
9. Flow Control - I : Boolean Operators: • Python Basic Tutorial Part - II | Boolean ...
You can find me on:
twitter: / ravivermaravi
facebook: / adminravi
Auf dieser Seite können Sie das Online-Video Flow Control - II : if statement Python | Python Basics Hindi Tutorial | IF - ELIF - ELSE mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Insight India 18 April 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 42 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!