Answered step by step
Verified Expert Solution
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 checktotalvotes:
if totalvotes guests:
printThe total votes match the the number of guests, it seems that everyone has cast their vote!"
elif totalvotes guests:
printThe total votes have exceeded the number of guests. Please retry."
getvotes
checkvotes
elif totalvotes guests:
printstrnotvoted people have not voted. Their votes will be added to pie
return intpievotes intnotvoted
def pieorderpienumvotes:
if pienumvotes :
pienumorder pienumvotes
else:
pienumorder
return pienumorder
def finalorderpie pie pie:
pieorder pieorderpievotes
pieorder pieorderpievotes
pieorder pieorderpievotes
print
printHeres your pie order:"
printpie: pieorder
printpie: pieorder
printpie: pieorder
It's saying it's missing a required positional argument, pienumvotes. The checktotalvotes 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started