Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('input.txt', 'r') as InputFile:
- a = InputFile.read()
- a=int(a)
- i = 1
- f = 0
- while (a//i != 0):
- (a//i)%10
- i*=10
- f+=1
- f+=2
- with open('output.txt', 'w') as OutputFile:
- OutputFile.write("*"*f + '\n' + "*" + str(a) + "*" + '\n' + "*"*f)
Advertisement
Add Comment
Please, Sign In to add comment