uz
Feedback
CBSE COMPUTER SCIENCE

CBSE COMPUTER SCIENCE

Kanalga Telegram’da o‘tish

QUESTION BANK, REFERENCE BOOK, LAB MANUAL , WORKSHEET ETC., PYTHON TEXT BOOK AND REFERENCE BOOKS, 01. ASK QUESTIONS AT https://t.me/joinchat/FJ1noGs-64I0OWI1

Ko'proq ko'rsatish
549
Obunachilar
Ma'lumot yo'q24 soatlar
Ma'lumot yo'q7 kunlar
Ma'lumot yo'q30 kunlar
Postlar arxiv
WORKSHEET-FLOW OF EXECUTION.docx0.13 KB

WORKSHEET-CSV FILE.docx0.13 KB

WORKSHEET-BINARY FILE.docx0.14 KB

WORKSHEET-REVIEW BASIC.docx0.13 KB

0.345100276374246 16.022778163937048 13.953156530132006 9.92250007349345 2 3 Before Shuffled : [1, 2, 3, 7, 10, 'Apple', 'Mango', 55, 75.23] After Shuffled : [1, 'Mango', 2, 3, 75.23, 'Apple', 55, 10, 7] Given Sequence : [1, 2, 3, 7, 10, 'Apple', 'Mango', 55, 75.23] Choosen the element : Apple

import random #L-Lower Limit, U-Upper Limit #random.random() : Returns a floating point value between 0 and 1. #0 and 1 are not included Ex. 0.1 to 0.999 #A number between 0 and 1 num = random.random() print(num) #A number between 0 and 50 num = random.random() * 50 print(num) # A number between -50(L) and 50(U) num = random.random() * 100 - 50 print(num) #random.uniform(L,U): Returns floating point value between L and U. #L included and U may or may not be included # A floating point number between 1 and 10 num = random.uniform(1,10) print(num) #lower(L) limit (0) included, upper(U) limit excluded num=random.randrange(10) print(num) #random.randint(L,U) - #Returns an integer between U and L. #Both lower(L) limit and upper(U) limit Included # An Integer number between 1 and 10 num=random.randint(1,10) print(num) #Random functions for a Sequence #Methods 1 : random.shuffle(Sequence) L=[1,2,3,7,10,'Apple','Mango',55,75.23] print("Before Shuffled : ",L) random.shuffle(L) print("After Shuffled : ",L) #Methods 2 : random.choice(Sequence) L=[1,2,3,7,10,'Apple','Mango',55,75.23] print("Given Sequence : ",L) K=random.choice(L) print("Choosen the element : ",K)

photo content

12CS-ARIHANT-SQPAPERS-TERM-1.pdf3.44 MB

12CS_Arihant_MCQ_Chapterwise.pdf2.73 KB

SAMPLE QUESTION PAPER-2.pdf6.56 KB

12CS_QP9.pdf5.46 KB

12CS_QP10.pdf5.34 KB

12CS_QP8.pdf5.35 KB

12CS_QP7.pdf5.22 KB

12CS_QP6.pdf5.21 KB

12CS_QP5.pdf5.19 KB

12CS_QP4.pdf5.23 KB

12CS_QP3.pdf5.32 KB

12CS_QP2.pdf5.34 KB

12CS_QP1.pdf5.86 KB