Posts by Natanael Ricardo • 47 points
5 posts
-
0
votes1
answer60
viewsQ: Comparing strings to switch in PHP
The point is this: A company will give a salary increase to its employees from according to the category of each employee. The increase will follow the following rule: Employees in categories A and…
-
0
votes3
answers2047
viewsQ: average of values typed in python input
I’m doing a program that picks up a value typed in input (which is not negative and is less than 20) and calculates: a) The highest value; b) The lowest value; c) The sum of the values; d) The…
pythonasked Natanael Ricardo 47 -
-1
votes2
answers1177
viewsQ: Limit number quantity in an input
I am making a basic program that reverses numbers (if the user type 123, the program returns 321), but the user can enter only 3 numbers, if you pass that the program has to ask the user to type…
pythonasked Natanael Ricardo 47 -
0
votes2
answers2134
viewsQ: Make input accept only positive numbers
I’m doing a factor calculator program, which is already running right. But I don’t know how to do the input of this program accept only positive numbers. I tried with isdigit: n = int(input('Digite…
pythonasked Natanael Ricardo 47 -
-1
votes1
answer137
viewsQ: Separate print from two Python structures
I made a small program in Python that asks the user to type any integer number, right after it shows the Fibonacci sequence (number of times) and then shows the number of even numbers until that…