Last active
October 9, 2020 22:14
-
-
Save naufalafif/45fa8b3d896142ba615763411ff78e9c 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 multiply_by_random_number(number): | |
""" function ini mengambalikan hasil number dikalikan angka random """ | |
return number * random.randint(1, 1000) | |
multiply_by_random_number(2) # contoh, 925 | |
multiply_by_random_number(2) # contoh, 12 | |
multiply_by_random_number(2) # contoh, 564 | |
multiply_by_random_number(2) # contoh, 623 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment