Python Program to print even numbers from 1 to 100
In this program, You will learn how to print even numbers from 1 to 100 in Python. Some even list is : 2 4 6 8 10 12 14 16…
In this program, You will learn how to print even numbers from 1 to 100 in Python. Some even list is : 2 4 6 8 10 12 14 16…
In this program, You will learn how to check number is even or odd in Python. if num % 2 == 0: even else: odd Example: How to check number…
In this program, You will learn how to check the age of a user who is eligible for voting or not in Python. if age >= 18: true else: false…
In this program, You will learn how to find the square root of a number in Python. import math math.sqrt(x) Example: How to find the square root of a number…
In this program, You will learn how to find the average of n numbers in Python. sum = 2 + 3 + 4 + 5 avg = sum / 4…
In this program, You will learn how to find an average of 5 subjects in Python. sum = a + b + c + d + e avg = sum…
In this program, You will learn how to initialize more than one variable at a time in Python. x = y = z = 5 Example: How to initialize more…
In this program, You will learn how to add two numbers in Python. 20 = 10 + 10 30 = 10 + 20 Example: How to add two numbers in…