Question: There is still an issue somewhere here: def check _ total _ votes ( ) : if total _ votes = = guests: print (

There is still an issue somewhere here:
def check_total_votes():
if total_votes == guests:
print("The total votes match the the number of guests, it seems that everyone has cast their vote!")
elif total_votes > guests:
print("The total votes have exceeded the number of guests. Please retry.")
get_votes()
check_votes()
elif total_votes < guests:
print(str(not_voted)+" people have not voted. Their votes will be added to "+ pie_1)
return int(pie_1_votes)+ int(not_voted)
def pie_order(pie_num_votes):
if pie_num_votes >3:
pie_num_order = pie_num_votes //8
else:
pie_num_order =0
return pie_num_order
def final_order(pie_1, pie_2, pie_3):
pie_1_order = pie_order(pie_1_votes)
pie_2_order = pie_order(pie_2_votes)
pie_3_order = pie_order(pie_3_votes)
print("----------------------")
print("Here's your pie order:")
print(pie_1+": "+ pie_1_order)
print(pie_2+": "+ pie_2_order)
print(pie_3+": "+ pie_3_order)
It's saying it's missing a required positional argument, pie_num_votes. The check_total_votes function does not work either, it said there were zero people whon did not vote when there was not.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!