Posts by Jedi Negão • 23 points
2 posts
-
-1
votes2
answers51
viewsQ: How do I print how many times there is a similar term in a python list?
while True: lista = [] ingresso = (str(input())) lista.append(ingresso) if ingresso== "FIM": break elif ingresso != "NORMAL" and ingresso != "VIP" and ingresso != "FIM": print(f"Comando {ingresso}…
-
1
votes3
answers280
viewsQ: Finish a loop when a given string is typed
I’m trying to fill a list with numbers, so I made a loop: lista=[] i = float(input()) lista.append(i) while (i != '.'): i = float(input()) lista.append(i) However I wanted that when putting the…