Back to tasks
A line with no indentation
BeginnerPython for kids 路 Lesson 29: Mistakes in ifs
Problem Statement
The program should print the number without a minus. This program has a mistake - find it and submit the fixed version.
n_str = input()
n = int(n_str)
if n < 0:
n = -n
print(n)
Input Format
One whole number n (-1000 <= n <= 1000).
Output Format
One number - the result.
Examples
Example 1
Input
-7
Output
7
Example 2
Input
7
Output
7