Answer:
def countdown(n):
if n <= 0:
print('Blastoff!')
else:
print(n)
countdown(n-1)
def countup(n):
if n >= 0:
print('Blastoff!')
else:
print(n)
countup(n+1)
number = int(input("Enter a number: "))
if number >= 0:
countdown(number)
elif number < 0:
countup(number)
<u>Outputs:</u>
Enter a number: 3
3
2
1
Blastoff!
Enter a number: -3
-3
-2
-1
Blastoff!
Enter a number: 0
Blastoff!
For the input of zero, the countdown function is called.
Explanation:
Copy the countdown function
Create a function called countup that takes one parameter, n. The function counts up from n to 0. It will print the numbers from n to -1 and when it reaches 0, it will print "Blastoff!".
Ask the user to enter a number
Check if the number is greater than or equal to 0. If it is, call the countdown function. Otherwise, call the countup function.
Two different Operating Systems are
Windows 7
LINUX
Explanation:
- Windows is an Operating System which was released by Microsoft to be used on Personal Computers.
- They are used to manage software and perform various tasks.
- LINUX is another type of operating system that is used on Super computers
- Linux has been used in homes and organisation desktops in a great number.
- It is used for great number of computing embedded tasks.
If you're using a computer, you can take a picture on a camera, copy the picture to your computer to upload to Brainly.
If you're using a phone, you can easily upload pictures in the brainly App when you ask a question! just hit the camera button on the bottom left.
Answer:
Explanation:
but i drew eyes like your but digtal