Thursday 17 February 2022
Python practice programs for beginners - Day 20
Day 19 Solution:
Output:
Practice the same kind of programs and if you practice any new program kindly mention in it in comments.
Also read: How to install Android Studio
Python practice programs for beginners - Day 19
Day 18: Solution
Day 19: Getting list items from users at run time and printing it.
You can practice the above program.
Day 19 Task: Get the Hollywood movie list going to get released in 2022 Summer from the user and print it.
Python practice programs for beginners - Day 18
Day 17 Solution:
Monday 14 February 2022
Python practice programs for beginners - Day 17
Day 16: Solution
Day 17: While loop
Syntax:
while condition to check:
statement to be executed
Example:
Day 17 Task:
Get a number from the user and print the odd numbers in that range.
Saturday 12 February 2022
Python practice programs for beginners - Day 16
Day 15 Solution:
Friday 11 February 2022
Python practice programs for beginners - Day 15
Thursday 10 February 2022
Python practice programs for beginners - Day 14
Day 13 Solution:
Python Grade Checker Project Source Code:
Day 14: for loop
Syntax:
for val in sequence:
statements to be expected in the loop
val - variables
sequence - may be a range or list of items
Example:
Output:Task: Print your name 10 times
Wednesday 9 February 2022
Python practice programs for beginners - Day 13
Day 12 Solution:
Get a student details such as:
Name:
School/College:
City:
Subject 1 mark :
to
Subject 5 mark:
Then calculate the following details and display them:
Total:
Average:
Pass/Fail:
Grade:
Grade Calculation based on Average value:
91 to 100 - A+
86 - 90 - A
80 - 85 - B+
79 - 84 - B
70 - 78 - C
60 - 69 - D
50 - 58 - E
Below 50 - F
Sample Output:
Will see the solution in the next post.
Tuesday 8 February 2022
Python practice programs for beginners - Day 12
Day 11 solution:
We can use
f --> format
' --> single apostrophe used to say that it follows String formatting.
{} --> we can use the curly braces for the placeholders where we can mention the variable name.
Monday 7 February 2022
Python practice programs for beginners - Day 11
Day 10 Solution:
Day 11: If elif
If we want to check more scenarios we can use if elif
Syntax:
if condition 1:
Statement to be executed if the condition is True
elif condition 2:
Statement to be executed if the condition is True
elif condition 3:
Statement to be executed if the condition is True
Day 11 Task: Get three numbers from the user and try to find the smallest of those three numbers.