العربية  

books age calculator

If you do not find what you're looking for, you can use more accurate words.

View more

حساب العمر (Info)


مثال لحساب العمر:

from datetime import * #استدعاء الكل* من مكتبة الوقت والتاريخ dob = int(input("أدخل تاريخ الميلاد: ")) #يُطلب من المستخدم إدخال تاريخ ميلاده # العمل على المعطيات today = datetime.today() year = today.year age = int(year) - int(dob) # طباعة عمر المستخدم print ("{age}:عمرك هو")

Source: wikipedia.org