Control Flow

Ha Khanh Nguyen (hknguyen)


1. if Statement


2. elif Statement


3. else Statement


4. Exercises

Exercise 1: We are given 2 numbers stored in variables a and b. Write a program to print the number with the larger value.

Exercise 2: We are given 2 strings s1 and s2. If one is contained in the other, print "One is a substring of the other!". Otherwise, print "They are distinct strings!"