بحث هذه المدونة الإلكترونية

الاثنين، 18 سبتمبر 2023

مشروع المنطقة بايثون اكتوكود

  1. area = input (" please enter your area : (Cairo), (Alexandria), or (Tanta)\n")
  2. if  area.lower() == "cairo" or area.lower() =="tanta" or area.lower()== "alexandria" :
  3.   print ( f"{area} in our list")
  4. else :
  5.   print (f"sorry {ara} is not in our list")

مشروع الدرجات بايثون اكتوكود

  1.  degree = float ( input (" please enter your degree"))
  2. if degree >=90 :
  3.   print (" your degree is Excellent")
  4. elif degree >=75 :
  5.   print (" your degree is Good")
  6. elif degree >=50 :
  7.   print (" your degree is acceptable")
  8. else :
  9.   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

  1. password ==input ("pleas enter your password\n")
  2. if password =="abc":
  3.   print (" Hello)
  4. eles:
  5. print ("wrong password")
# second  project

  1.  answer = input (" please enter your answer ( yes; no; maybe)")
  2. if answer == "yes":
  3.   print ("your answer is yes")
  4. elif answer =="no":
  5.   print (" your answer is no")
  6. elif answer == "maybe":
  7.   print (" your answer is maybe ")
  8. eles :
  9.   print (" wrong answer ") 

# third project
  1. number = int ( input ("guess the right number\n"))
  2. if number ==7 :
  3.   print ("you entered the right number ")
  4. eles :
  5.   print ("you entered the wrong number ") 
 




 

 

الجمعة، 15 سبتمبر 2023

اجرة العامل بايثون اكتوكود

  1.  str_length = input (" please type length\n")
  2. str_width = input (" please type width\n")
  3. str_price = input ("how mutch for 1 meter\n")  
  4. length = float (str_length)
  5. width = float (str_width)
  6. price = float str_price)
  7. area = lengh * width
  8. str_area = str(area)
  9. total_price = area * price
  10. str_total_price = str(total_price)
  11. print("the total area is :" + str_area)
  12. print (" Give the gay:" + str_total_price)