This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a, b, c = 10, 100, "hello" | |
print(a) | |
print(b) | |
print(c) | |
d = e = f = 40 | |
print(d) | |
print(e) | |
print(f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cyc(a, b, lim): | |
c = a + b | |
if c > lim: | |
return b | |
return cyc(b, c, lim) | |
limin = input() | |
lim = 0 | |
try: | |
lim = int(limin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input1 = input() | |
input2 = input() | |
try: | |
x = int(input1) | |
y = int(input2) | |
except ValueError as e: | |
print('整数を入力してください') | |
exit() |