Posts by LucasBraga08 • 31 points
2 posts
-
2
votes3
answers1401
viewsA: I would like to know what is the function of: {} in the Python language and more specifically within the PRINT function as in this code?
This is a kind of Python formatting, it replaces the {0} in this case, by the data of the .format(). But there is a more basic one that you can easily replace... Shape using the . format nome =…
-
1
votes2
answers64
viewsA: Python - How to calculate the predecessor of a number?
It’s hard to understand without the error code, but I’ll try to help: You could use Loop While thus: def read_input(num): while True: try: c = int(input(num)) except (ValueError, TypeError):…
pythonanswered LucasBraga08 31