Python programs coding series - Hello world
Hello Friends,
Welcome to Python Coding series!!!
Whats more fun than writing our first program. Saying Hello world in Python is very easy.
#Saying Hello world in Python is very easy
print("Hello World")
Output
Let's pass the name from a variable called name. there is no explicit declaration in Python.
#Saying Hello world in Python is very easy
name="World"
print("Hello "+name)
Output
Let's get a self introduction of earth. As there is no explicit declaration, you need to typecast.
#Getting an introduction of World
name="World"
age=4.5
print("Hello Everyone!!! My name is Mr."+name+" and I am "+str(age)+" years old")

No comments