Posts by ElMassas • 181 points
4 posts
-
3
votes1
answer38
viewsQ: Join method is not working
Good! I am creating the game Battleship and I found a problem creating the board. Code: board = [] for x in range(15): board.append(["O"] * 15) def print_board(board): for row in board: print ("…
-
0
votes1
answer356
viewsQ: Check the type of input
Good people! I need to do an input check for a job and I’m not getting this right. This is what I got till agr: def verificação1(): while True: try: quantidade=int(input("Insira a quantidade: "))…
-
3
votes2
answers11453
viewsQ: Count vowels and know how many there are
Good! I wanted to create a function that would allow me to say if a word or phrase has vowels, and if so, how many vowels have, but I have 2 problems in my code that I don’t understand: def…
-
1
votes1
answer2620
viewsQ: "Nameerror: [word I typed] is not defined" when trying to read from keyboard
I was following a little tutorial. I did everything exactly as indicated in the tutorial and gave me a variable definition error whereas in the tutorial did not give. Can someone explain to me the…