Python Practical – Day -06
[Link] two variables a and b with integer values. Print their sum,
difference, product
[Link] the user to enter their name and age.
Print: “Hello [name], you are [age] years old.”
[Link] two numbers and print which one is greater.
[Link] a program to check whether a number entered by the user is
even or odd.
[Link] three numbers and print the largest one using if-else
statements.
[Link] the average of three numbers entered by the user.
[Link] a program to check whether a number is positive, negative,
or zero.
[Link] a year and check whether it is a leap year or not.
[Link] a program that prints numbers from 1 to 10 using a while
loop.
[Link] a program that prints even numbers between 1 and 20
using a for loop.
[Link] the user for a number and print its multiplication table up to
10.
[Link] a program to calculate the sum of numbers from 1 to n
(user input).
[Link] from 10 down to 1 using a while loop and then print “Blast
off!”.
[Link] the user to enter 5 numbers. Calculate and print their total
and average.
[Link] whether a character entered by the user is a vowel or
consonant.
[Link] a program that displays the squares of numbers from 1 to
10.
[Link] the user to enter a password. If it matches "python123",
print “Access Granted”,
otherwise “Access Denied.”
[Link] a program that prints all odd numbers between 1 and 50.
[Link] the user to enter a number and check whether it is divisible
by both 3 and 5.