Posts by Samuel Camilo • 21 points
2 posts
-
0
votes2
answers1656
viewsA: I am unable to perform the following exercise in python
the code can be so, more summarized and using . format instead of summing the strings pesos = input('Digite o numero de quilos q vc pegou:') if pesos > 50: multa = (pesos - 50) * 4 print ('Total…
pythonanswered Samuel Camilo 21 -
1
votes2
answers91
viewsQ: When changing the value of a variable, all objects in the same class are changing
I have a code that creates a class, with a location attribute, one (x, y). I ask the program to create 2 objects of this class with the random location attribute around a circle. However, they both…