en
Feedback
O Level Previous paper

O Level Previous paper

Open in Telegram

https://youtube.com/@Satya806 सभी लोग इस Channel को Subscribe कर लो https://t.me/O_levelpaper Telegram group Quiz 👉https://t.me/o_levelsatya #M4-R5_Paper #M2R5 #O_Level #M3R5_Notes #M1R5Video #PaidClass_O_Level #O_Level_Notes #Satya_Sir

Show more
733
Subscribers
+124 hours
+17 days
+330 days
Posts Archive
PYTHON program .pdf Join👉@o_levelsatya

Enter Number

prime number wale ki codeing

Enter First Number
Enter End Range

file= input("Enter Your File:") fp=open(file, 'r') str=fp.read() result="" for i in str: if i.isalpha(): if i=="z" or i=="Z": result+=chr(ord(i)-25) else: result+=chr(ord(i)+1) else: result+=i print(result)

Most important Questions of python 👉 Armstrong Number 👉 Factorial Program 👉 Fibonacci Series 👉 Prime Number 👉 Palindrome Number 👉 Odd and Even 👉 prime number 👉Star ⭐ Pattern 👉 Reverse String 👉 table 👉Sum of digits 👉 Vowels Count 👉Co-Prime Number (G.C.D) or H.C.F 👉How to Swap two numbers 👉Date and time Program 👉leap years 👉 Simple interest 👉 Profile and Loss

# Square pattern program size = 5 for i in range(0, size): # printing * for 'size' times and a new line print("*" * size)

5-ceil() import math print(math.ceil(3.2)) print(math.ceil(3.5)) print(math.ceil(3.9))

4-floor() import math print(math.floor(3.2)) print(math.floor(3.5)) print(math.floor(3.9))

3- factorial () import math x=math.factorial(5) print("Factorial of 5:",x) y=math.factorial(4) print("Factorial of 4:",y)

2-pow() import math x=math.pow(2,3) print("Result:",x) y=math.pow(5,2) print("Result:",y)

Sqrt() import math x=math.sqrt(16) print("Result:",x) y=math.sqrt(14) print("Result:",y)

#UPSC Section -B
#UPSC Section -B

#UPSC -2023
#UPSC -2023

Assets का प्रयोग करके कोई भी link URL copy or IMG copy कर सकते हैं ☝️☝️☝️

Note- यह सब List के Function है जिसकी जरूरत आपको पेपर में पड़ने वाली है अगर list से प्रश्न आता है तो इसलिए आप एक बार इसका अभ्यास कर लो☝️☝️☝️

Different b/w remove and clear Ans- Clear - Delete All Data and Remove Delete specific Data ( जिस को आप करना चाहते हैं उसको ही करेगा

 Removing items from a list using remove() in Python dryFruits = ["Cashew nuts","Dates","Almonds","Raisins"] dryFruits.remove("Raisins") print(dryFruits)

#Remove all the elements from a list in Python dryFruits = ["Cashew nuts","Dates","Almonds","Raisins"] dryFruits.clear() print(dryFruits)

#Merging two lists using extend method in Python list1 = ["Apple","Orange","Mango"] list2 = ["Grape","Strawberry"] list1.extend(list2) print(list1)