Tuesday, July 27, 2021

Python - day 16 if elif else continue

 
Session 16
task1: Implement vowel program using if else?

Condition1 condition2 condition3 (Pair conditions)

Note: When we are implementing pair conditions, we should use logical operators to concatinate (join or between).

like
and
or
about
and

True and True -> True
True and Flase -> False
False and True -> False
False or False -> False

When do we use operator?
-> When following statement should execute any one condition is true.


task2
Implement vowel program using if else and which should handle case sensitive?

-> Implement above vower program by using if else and which should handle case sensitive by using pre-defined method?

Design with o/p

task3
write a python program to accept student 3 subject marks and display the result?

Step1: Design with O/P
----------------------
Solution:-

Task4
Implement above program using 6 subjects

task5: Accept person age display person status



No comments:

Post a Comment

Git branch show detached HEAD

  Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03)   00 2. Run re-set hard $ git reset --hard 3. ...