-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
42 lines (37 loc) · 1.54 KB
/
main.py
File metadata and controls
42 lines (37 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# the challenge in this fail
"""
1.number below 50
Ask for a number below 50 and then count down from 50
to that number, making sure you show the number they entered in the output.
اطلب رقمًا أقل من 50 ثم عد تنازليًا من 50 إلى هذا الرقم ، وتأكد من إظهار الرقم الذي أدخلته في الإخراج.
"""
"""
2.count (up or down).
Ask which direction the user wants to count (up or down).
If they select up,
then ask them for the top number and then count from 1 to that number.
If they select down, ask them to enter a number below 20
and then count down from 20 to that number.
If they entered something other than up or down,
display the message “I don’t understand”.
"""
"""
3.wants to invite
Ask how many people the user wants to invite to a party.
If they enter a number below10,
ask for the names and after each name display “[name] has been invited”.
If they enter a number which is 10 or higher,
display the message “Too many people”.
Upload program to GitHub and write the link?
"""
"""
4.Ask the user to enter a number between 10 and 20
Ask the user to enter a number between 10 and 20.
If they enter a value under 10,
display the message “Too low” and ask them to try again.
If they enter a value above 20,
display the message “Too high” and ask them to try again.
Keep repeating this until they enter a value
that is between 10 and 20 and
then display the message “Thank you”.
"""