Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions