Posts by Henrique Morano • 11 points
3 posts
-
1
votes2
answers86
viewsA: How to deal cards from a deck using dictionary
To list all cards in sequence: def lista_cartas(baralho): lista = [] for naipe in baralho: for carta in baralho[naipe]: lista.append(carta) return lista print(lista_cartas(baralho)) To choose 5…
-
-1
votes2
answers58
viewsA: Doubt about database
In ANSI SQL, double quotes are used in object names (for example, tables) they allow them to contain characters not otherwise permitted or to be equal to reserved words.
databaseanswered Henrique Morano 11 -
-2
votes1
answer40
viewsQ: How to split large numbers without python abbreviating it?
Whenever I try to do calculations in python with large numbers, it ends up abbreviating the result. For example: a = 8682372684397235357614080000 b = 86400 c = a/b print(c) 1.0049042458793097e+23…