- area = input (" please enter your area : (Cairo), (Alexandria), or (Tanta)\n")
- if area.lower() == "cairo" or area.lower() =="tanta" or area.lower()== "alexandria" :
- print ( f"{area} in our list")
- else :
- print (f"sorry {ara} is not in our list")
بحث هذه المدونة الإلكترونية
الاثنين، 18 سبتمبر 2023
مشروع المنطقة بايثون اكتوكود
مشروع الدرجات بايثون اكتوكود
- degree = float ( input (" please enter your degree"))
- if degree >=90 :
- print (" your degree is Excellent")
- elif degree >=75 :
- print (" your degree is Good")
- elif degree >=50 :
- print (" your degree is acceptable")
- else :
- print ("your degree is weak")
مشروع الثواني بايثون اكتوكود
total_sec = int (input ("please entr total second\n"))
c_mints = total_sec //60
print (f"the duration is :{c_mints//60} hours,{c_mints} mints,{total_sec%60} seconds")
السبت، 16 سبتمبر 2023
الثلاث مشروعات بايثون اكتو كود
# first project
- password ==input ("pleas enter your password\n")
- if password =="abc":
- print (" Hello)
- eles:
- print ("wrong password")
# second project
- answer = input (" please enter your answer ( yes; no; maybe)")
- if answer == "yes":
- print ("your answer is yes")
- elif answer =="no":
- print (" your answer is no")
- elif answer == "maybe":
- print (" your answer is maybe ")
- eles :
- print (" wrong answer ")
# third project
- number = int ( input ("guess the right number\n"))
- if number ==7 :
- print ("you entered the right number ")
- eles :
- print ("you entered the wrong number ")
الجمعة، 15 سبتمبر 2023
اجرة العامل بايثون اكتوكود
- str_length = input (" please type length\n")
- str_width = input (" please type width\n")
- str_price = input ("how mutch for 1 meter\n")
- length = float (str_length)
- width = float (str_width)
- price = float str_price)
- area = lengh * width
- str_area = str(area)
- total_price = area * price
- str_total_price = str(total_price)
- print("the total area is :" + str_area)
- print (" Give the gay:" + str_total_price)
الاشتراك في:
التعليقات (Atom)