python tutorial

1

How to print "Hello, World!" in Python?


2

Write a Python program to add two numbers.


3

Write a Python program to find the largest number among three numbers.


4

Write a Python program to find the smallest number among three numbers.


5

Write a Python program to check if a number is even or odd.


6

Print numbers from 1 to 10 using a loop.


7

Write a Python program to reverse a string.


8

How do you use string formatting to print "My name is John" where the name is stored in a variable name?(String Formatting: )


9

How do you concatenate two strings, "Hello" and "World", and print the result?


10

Write a Python program to check if a string contains only digits.()


11

How do you check if a number is even or odd?(If-Else Statement:)


12

Write a Python program to remove duplicates from a list.


13

How to swap the values of two variables?


14

How to sort a list in ascending order?


15

How to remove an element from a list?


16

How to find the length of a string?


17

How to convert a string to uppercase?


18

Function Define a function to calculate the square of a number.


19

Random Number Generate a random number between 1 and 100.


20

read and write a file

Last updated