3 תשובות
מצורפת גם תמונה, שימי לב שאת צריכה לבדוק אם זה כולל 20/30/10 וכו, הקוד יוצא מנקודת הנחה שזה לא כולל הקצוות
# code
people_num = int(input("please enter the number of people"))
if people_num > 30:
print("you are great leaders")
elif people_num > 20 and people_num < 30:
print("the number of people is the highest")
elif people_num > 10 and people_num < 20:
print("reasonable number of people")
elif people_num < 10:
print("there is need to recruit more people")
print("movement - to realize the vision of creating a society that learns and does")
# code
people_num = int(input("please enter the number of people"))
if people_num > 30:
print("you are great leaders")
elif people_num > 20 and people_num < 30:
print("the number of people is the highest")
elif people_num > 10 and people_num < 20:
print("reasonable number of people")
elif people_num < 10:
print("there is need to recruit more people")
print("movement - to realize the vision of creating a society that learns and does")
קישורים מצורפים:
שואל השאלה:
זה על תנאי,יש מצב אתה כותב פה את הscript?
זה על תנאי,יש מצב אתה כותב פה את הscript?
למדת תנאים? זה לעשות תנאי לפי מה שמבקשים ואז אם התנאי מתקיים אז לעשות print למה שמבקשים
באותו הנושא: