Posts by Vinícius Amaral • 41 points
2 posts
-
0
votes1
answer57
viewsA: I need to inform the user if it contains a registered user with this same user name
In python there is the operator "in", it returns a boolean value (True or False), if some value exists in a compound variable (List, tuples, even strings). What you can do is not add the value of…
-
1
votes3
answers144
viewsA: Calculate the value of a multiplication using only summation and subtraction operators
is all a matter of mathematical logic itself, what is the logic behind multiplication? you add a number x times, so let’s program: x = 15 y = 0 for i in range(0, 5): y += x print(y) the logic is…