Posts by Eduardo Carlos Santos Pereira • 41 points
2 posts
-
0
votes0
answers19
viewsQ: Is it possible to create variables from a counter?
Good afternoon, I wonder if it is possible from the value obtained in a counter, to create variables in the same amount. To illustrate better: counter_persons = 2 person 1 = float(input('Enter your…
pythonasked Eduardo Carlos Santos Pereira 41 -
4
votes3
answers289
viewsQ: How to print a Python operation by adding zero to the left?
a = int(input('Número: ')) b = int(input('Número: ')) c = a / b print(c) If I assign A = 10; B = 5 print will show 2, I wonder if there is some kind of format that allows print to show 02? Thank…
pythonasked Eduardo Carlos Santos Pereira 41