#!/usr/bin/env python #Filename: Python_Course01_Q02_Gambling.py #This script is used for gambling an integer within 3 times. print('Hi, you have 3 times to guess the integer') INTEGER = 68 for i in range(3): i = int(input('Please enter an integer: ')) if i > INTEGER: print('Please guess a small one.') elif i < INTEGER: print('Please guess a big one.') elif i == INTEGER: print('Congratulation! You Win!') print('Oops! You fail!')