Week 1
Week 1
import datetime
now = datetime.datetime.now()
2. Write a Python program to get the Python version you are using
import sys
print("Python version")
print (sys.version)
print("Version info.")
3. Write a Python program that accepts an integer (n) and computes the value of
n+nn+nnn
5. Write a Python program to print the calendar of a given month and year.
import calendar
y = int(input("Input the year : "))
m = int(input("Input the month between(1-12) : "))
print(calendar.month(y, m))