-
-
Save rudrathegreat/455c6d4f9825711d892a614546515b6f to your computer and use it in GitHub Desktop.
Random Program for the Python 3 Random Function
This file contains hidden or 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
from random import randint | |
for x in range(10): | |
print random() | |
print('=============================') | |
z = ['ciao', 'piccolo', 'bambino', 'sono', 'qua', 'io', 'in verita'] | |
for x in z: | |
number = random.randint(0, 6) | |
choice = z[number] | |
print(str(choice)) | |
print('=============================') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment