Tutorials on Programming
Pages
Home
Hello World Programs
Pascal
C++
Java
SQL
Scratch
XLogo
Elica
HTML
Clojure
UCBLogo
Python
Javascript
Python Date
import datetime
from datetime import date
name=input("Key in your name, please: ")
age=input("Key in you age, please: ")
print("Today = ",date.today())
print("Mr/Mrs ",name," you were born in ",date.today().year-int(age))
Δεν υπάρχουν σχόλια:
Δημοσίευση σχολίου
Αρχική σελίδα
Εγγραφή σε:
Αναρτήσεις (Atom)
Δεν υπάρχουν σχόλια:
Δημοσίευση σχολίου