Answer:
#Declare the variables.
the_dict = {}
dictlist = []
#Begin the while loop.
while True:
#Prompt the user to enter the name
#and the number.
input_name = input("Name: ")
input_number = input("Number: ")
#Ask the user to continue or stop
#the program.
input_choice = input('More data (y/n)? ')
the_dict[input_name] = input_number
#Check the input.
if input_choice == 'n':
break
#If the user want to continue
#then append in the list.
for key, value in the_dict.items():
#Store the values in dictionary.
temp_val = (key,value)
dictlist.append(temp_val)
#Sort the list.
print(sorted(dictlist))
Just- you don’t wanna know alr? Alr :)
Answer:
The program will print out:
3
7
Explanation:
Let's replace "num" with what this variable is defined to in all of you if statements.
<u>First if statement:</u>
if 7 > 3:
print("3")
Result: 7 is indeed greater then 3, so it will print "3"
<u>Second if statement:</u>
if 7 < 5:
print("5")
Result: 7 is not less than 5, so it will not print "5"
<u>Third if statement:</u>
if 7 == 7:
print("7")
Result: 7 is equal to 7, so it will print "7"
Answer:
Formula is a sequence of cell referenced operators to do calculations.
fAnswer: A new source of high quality denim fabric
Explanation:
A shift from PPF1 to PPF2 would suggest a new improvement due to technology, innovation or raw material. Here a new source of high quality fabric would result in more and better production of fabrics.