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:
a="Please enter something"
return a
elif isitapokemon==True:
a="Thats everything i found:\n"
for i in range(len(infoList)):
a=a+str(infoList[i])+" "
if i != len(infoList)-1:
a=a+",\n"
else:
a=a+"."
return a
elif extrainfo[4]==True: #speacial type
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(",", "")
return 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(",", "")
return 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(",", "")
return a
else: #all pokeom 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(",", "")
return a
#[types0,amount1,best2,worst3,speciaType4,specialTypeRequest5,reqNumber6,wordList7,All8,number9]
elif extrainfo[0]==True : #types
a="A "+originalInput[-1]+"'s type is/are "+str(infoList[0])+","+str(infoList[1])
elif extrainfo[1]: #amount
if extrainfo[8]: #all
a="there are "+str(infoList[0]-1)
return a
else:
a="Sorry kid could you ask me in a diffrent way"
return a