Python Program to Print Hello world
A simple python program that displays output “Hello World”
#Python program to print hello world
print(‘Hello World’)
Output:-Â
Hello World
Note:- In this example, we used a built-in print () function to print “Hello World” String.
In python single quotes, double quotes, and triple quotes are used to print strings. So we can also use double quotes and triple quotes to print Hello World
print(“Hello World”)
print(“””Hello World”””)
print(”’ Hello World ”’)
Output:-
Hello World
Hello World
Hello World
Note:- Actually Triple Quotes are used to print multi-line String.
Example:-
print(“””Hello World
This is My first Python Program”””)
print(”’ Hello World
This is My first Python Program with triple quotes ”’)
Output:-
Hello World
This is My first Python Program
Hello World
This is My first Python Program with triple quotes
Python Program to add two numbers
Python program to find Area of Square
Python program to find Area of Triangle
Python program to swap two variables
Python program to convert Celsius to Fahrenheit
Python program to generate Random Number
Python program to convert Miles to Kolometers
Python program to find Largest of 2 numbers
Python program to check if number is Odd or Even
Python program to check if number is Positive Negative or Zero
Python program to check Leap Year
Types of Loop in Python
Python program to check Prime Number
Python program to Calculate Sum of N Natural Numbers
Python program to find sum of All Even Number between 1 to 10
Python program to find sum of All Odd Number between 1 to 10
Python program to check Armstrong Number