YouTip LogoYouTip

Python Exercise Example81

# Python2.x Python Exercise Example 81 [![Image 3: Python 100 Examples](#) Python 100 Examples](#) **Question:** 809*??=800*??+9*?? where ?? represents a two-digit number, 809*?? is a four-digit number, 8*?? results in a two-digit number, and 9*?? results in a three-digit number. Find the two-digit number represented by ??, and the result of 809*??. **Program Analysis:** None. Program source code: ## Example (Python 2.0+) #!/usr/bin/python# -*- coding: UTF-8 -*-a = 809 for i in range(10,100): b = i * a if b>= 1000 and b<= 10000 and 8 * i= 100: print b,' = 800 * ', i, '
← Python Exercise Example82Python Exercise Example80 β†’