Created
July 4, 2020 03:53
-
-
Save jnozsc/8c9b713de875132e64183cb2edebf6b3 to your computer and use it in GitHub Desktop.
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
import random | |
def main(): | |
d = input("桁数を入力してください\n") | |
try: | |
d = int(d) | |
except: | |
print("入力エラーがありますので、桁数2に") | |
d = 2 | |
for _ in range(10): | |
print(random.randrange(0, 10 ** d)) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment