Back to tasks
An else with no colon
BeginnerPython for kids 路 Lesson 29: Mistakes in ifs
Problem Statement
The program should print the bigger of two numbers. This program has a mistake - find it and submit the fixed version.
a_str = input()
a = int(a_str)
b_str = input()
b = int(b_str)
if a > b:
print(a)
else
print(b)
Input Format
Two whole numbers a and b, each on its own line (-1000 <= a, b <= 1000).
Output Format
One number - the result.
Examples
Example 1
Input
4 9
Output
9
Example 2
Input
9 4
Output
9