Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
def outputFuncktion(infoList,originalInput,extrainfo,isitapokemon,moreinfo):
#print(moreinfo)
if len(originalInput)==0:
print("Please enter something")
elif isitapokemon==True:
print("Thats everything i found: ")
for i in range(len(infoList)):
print(infoList[i], end =" ")
if i != len(infoList)-1:
print(",", end ="\n")
else:
print(".")
elif extrainfo[4]==True: #SpecType
if extrainfo[1]==True: #amount
a="There is/are "+str(infoList)+" "+str(extrainfo[5])+" type pokemon"
a=a.replace("[", "")
a=a.replace("]", "")
a=a.replace("'", "")
a=a.replace(",", "")
print(a)
elif extrainfo[2]==True: #best
a="These are the top "+str(extrainfo[5])+" Pokemon: "+str(infoList)
a=a.replace("[", "")
a=a.replace("]", "")
a=a.replace("'", "")
a=a.replace(",", "")
print(a)
elif extrainfo[3]==True: #worst
a="These are the Worst "+str(extrainfo[5])+"Pokemon: "+str(infoList)
a=a.replace("[", "")
a=a.replace("]", "")
a=a.replace("'", "")
a=a.replace(",", "")
print(a)
else: #all pokemon of a type
a=str(infoList)+" is/are "+str(extrainfo[5])+" type pokemon"
a=a.replace("[", "")
a=a.replace("]", "")
a=a.replace("'", "")
a=a.replace(",", "")
print(a)
elif extrainfo[0]==True : #type
print("A "+originalInput[-1]+"'s type is/are "+str(infoList[0])+","+str(infoList[1]))
elif extrainfo[1]: #amount
if extrainfo[8]: #all
print("there are "+str(infoList[0]-1))
else:
print("Sorry kid could you ask me in a diffrent way")