From 7e5bbcecfa9ae0c66432848c5277b6d209d99edb Mon Sep 17 00:00:00 2001 From: mansikath <132908109+mansikath@users.noreply.github.com> Date: Sat, 13 May 2023 11:24:21 +0530 Subject: [PATCH 1/3] Create random_test.py Today, I learned about the "random" module in Python. --- random_test.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 random_test.py diff --git a/random_test.py b/random_test.py new file mode 100644 index 0000000..569c4e9 --- /dev/null +++ b/random_test.py @@ -0,0 +1,18 @@ +import random + +ran_float=random.random() +print(ran_float) +ran_int=random.randint(1,100) +print(ran_int) +my_list=[1,2,3,4,5,6,7,8,9,10,["abc","def"]] +my_tuple=(1,2,3,("a","b","c")) +my_string="ABCDEFGHIJKLMNOPQRSTUVWXYZ" +ran_choice1=random.choice(my_list) +ran_choice2=random.choice(my_tuple) +ran_choice3=random.choice(my_string) +print(ran_choice1) +print(ran_choice2) +print(ran_choice3) + +ran_shuffle1=random.shuffle(my_list) +print(ran_shuffle1) From 4a48006d4f952b8f7bc71f954779406a3f8afc44 Mon Sep 17 00:00:00 2001 From: mansikath <132908109+mansikath@users.noreply.github.com> Date: Sun, 26 Nov 2023 12:15:48 +0530 Subject: [PATCH 2/3] Create .DS_Store --- .DS_Store | Bin 0 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..6a5a3cca60f3e62b12b2bb5f023ce9b20f95a308 GIT binary patch literal 6148 zcmeHKO-sW-5PfTND1OnS$NT{;y?TlzVh$TzS{MgpkFn?ZbR{NWbTK%@5ri$iea=luX3kJp*;sr~T z7;}YP+;f!~SDCZFWIrYcCAEt?_Q&Kzyt!p&$+sdA1x7w&##kA@lJ|uHy$O4_d_svS z<7VV>z*#c>3br3;7i_1DYUGd=-}s6fcykL^yAurX%ob@MI8>_)CKSUIGJqJIP|4QiBuKV{$(Qa5|J literal 0 HcmV?d00001 From 594d8ed06e85d6851e5ee3f39d0cebc9716cee30 Mon Sep 17 00:00:00 2001 From: mansikath <132908109+mansikath@users.noreply.github.com> Date: Sun, 26 Nov 2023 12:19:59 +0530 Subject: [PATCH 3/3] Update .DS_Store --- .DS_Store | Bin 6148 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/.DS_Store b/.DS_Store index 6a5a3cca60f3e62b12b2bb5f023ce9b20f95a308..4ee6db093652dac1659b4b740f817593d5d4fdda 100644 GIT binary patch delta 63 zcmZoMXfc=|#>CJ*F;Q%yo+2a5!~knXmdQLU)tf~*gjhBfykpwT&cV+CRIyo*<2&$TzS{MgpkFn?ZbR{NWbTK%@5ri$iea=luX3kJp*;sr~T z7;}YP+;f!~SDCZFWIrYcCAEt?_Q&Kzyt!p&$+sdA1x7w&##kA@lJ|uHy$O4_d_svS z<7VV>z*#c>3br3;7i_1DYUGd=-}s6fcykL^yAurX%ob@MI8>_)CKSUIGJqJIP|4QiBuKV{$(Qa5|J