. Write your own unique Python program that has a runtime error. Do not copy the program from your textbook or the Internet. Provide the following.
Write a Python program that gets a number using keyboard input. (Remember to use input for Python 3 but raw_input for Python 2.)
If the number is positive, the program should call countdown. If the number is negative, the program should call countup. Choose for yourself which function to call (countdown or countup) for input of zero.
Provide the following.
1. Copy the countdown function from Section 5.8 of your textbook.
def countdown(n):
if n <= 0:
print('Blastoff!')
else:
print(n)
countdown(n-1)
Write a new recursive function countup that expects a negative argument and counts “up” from that number. Output from running the function should look something like this:
>>> countup(-3)
-3
-2
-1
Describe the difference between a chained conditional and a nested conditional. Give an example of each.
Deeply nested conditionals can become difficult to read. Describe a strategy for avoiding nested conditionals. Give a example of a nested conditional that can be modified to become a single conditional, and show the equivalent single conditional.
#1 Food Plate #1(wings)$18
#2 Food Plate #2 (chicken strips)12
#3 Food Plate #3 (fish basket)12
#4 Food Plate #4 (shrimp po boy)15
#5 Food Plate #5 (pork chop basket)12
Write a program to ask customers to enter their first name and the menu item # they wish to purchase. The program should define a function to assign the price to the food item based on what the customer purchases. Call the function in the program to determine the cost of the food plate. for this program customers will only purchase one food plate. Then ask the customer if they would like to add a tip and how much. Add tax of 9% to the cost of the food item, add in the tip amount and display their total bill. Do not include the tip when you calculate tax. The tip is extra after tax is charged on the food. Be sure to display a $ when displaying the total and 2 decimal
write a python program to count the number of uppercase and lowercase letters in the given word.
Write your own function that illustrates a feature that you learned in this unit . The function must take time at least one argument .