all valid python 3

This commit is contained in:
Alex Brown
2018-10-20 14:45:08 -05:00
parent b566055e4b
commit ea2ddaaf6a
37 changed files with 76 additions and 1436 deletions

View File

@ -4,7 +4,7 @@ A palindromic number reads the same both ways. The largest palindrome made from
Find the largest palindrome made from the product of two 3-digit numbers which is less than N.
'''
from __future__ import print_function
limit = int(raw_input("limit? "))
limit = int(input("limit? "))
# fetchs the next number
for number in range(limit-1,10000,-1):
@ -26,4 +26,4 @@ for number in range(limit-1,10000,-1):
print(number)
exit(0)
divisor -=1
divisor -=1

View File

@ -12,8 +12,8 @@ for i in range(999,100,-1):
arr.append(i*j)
arr.sort()
n=int(raw_input())
n=int(input())
for i in arr[::-1]:
if(i<n):
print(i)
exit(0)
exit(0)