In [1]:
# Hello World in Python
print("Hello World !")
In [2]:
# Check Python version
import sys
print(sys.version)
In [3]:
# Add two constants
3.4 + 5.6
Out[3]:
In [4]:
# Defining a variable. No need of explicit type specification
a = 1
b = 2.0
c = "Hello"
print(type(a))
print(a)
print(type(b))
print(b)
print(type(c))
print(c)
No comments:
Post a Comment