Posts by Caio Tracera • 55 points
5 posts
-
2
votes1
answer389
viewsQ: Read and write binary files using STRUCT
I have an array valores = [16, -25, 34, 2, 199, 45, 67, 90]and need to save them in a binary file using struct. Then I need to read the binary file with struct. To read, I’m using the following…
-
0
votes1
answer38
viewsQ: Bubblesort in key 3 of a tuple?
I own a tuple with the following values: ('beringela', 10, 1.99) ('arroz', 5, 4.99) ('peixe', 2, 9.99) ('abacaxi', 100, 3.99) I must order it by the third column, but I cannot use Builtin…
python-3.xasked Caio Tracera 55 -
3
votes1
answer231
viewsQ: Doesn’t Python3 recognize 0 as int?
The question says I need to receive user entries until a blank line is typed. After the user finishes the entry, I need to check in this entry if there are valid numbers and print them at the end of…
-
0
votes3
answers3361
viewsQ: Make list with input in python
Good morning, you guys. I need help to solve a part of the college exercise. The problem is relatively simple, but I’m having difficulties. My code is this: # Subprogramas def verifica_peso(pesos):…
-
0
votes3
answers401
viewsA: Materializecss: image without margin
The simplest way to solve this, if you haven’t tried yet, is to go in your own stylesheet and set a margin=0 for the figure. It seems to me that the margin may be coming from both the…