O Level Previous paper
رفتن به کانال در 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
نمایش بیشتر733
مشترکین
+124 ساعت
+27 روز
اطلاعاتی وجود ندارد30 روز
آرشیو پست ها
Repost from O Level Previous paper
important numpy as np
arr= np.array([1,2,3,4,5])
print (arr)
#Create a NumPy
Output
[1 2 3 4 5 ]
Repost from O Level Previous paper
#taking user input
a=int(input("Enter first number:"))
b=int(input("Enter second number:"))
c=int(input("Enter third number:"))
if a>b and a>c:
print(a," is greatest")
if b>a and b>c:
print(b," is greatest")
if c>a and c>b:
print(c," is greatest")
"""
*Output*
Enter first number:58
Enter second number:47
Enter third number:86
86 is greatest
"""
Repost from O Level Previous paper
#taking user input
no=int(input("Enter any number:"))
m=1
while no!=0:
#extracting last digit
r=no % 10;
#finding multiplication
m=m*r
#removing last digit
no=int(no/10)
print("Total digit multiplication:",m)
"""
*Output*
Enter any number:524
Total digit multiplication: 40
"""
Repost from O Level Previous paper
for i in range(1,6):
for j in range(1,6):
if (i+j)<=6:
print("* ",end="")
else:
print(" ",end="")
print("")
"""
*Output*
* * * * *
* * * *
* * *
* *
*
"""
Repost from O Level Previous paper
"""
Suppose first div:>=60
second div b/w 45 and 59
third div b/w 33 and 44
fail < 33
"""
#taking user input
p=int(input("Enter your percentage of marks:"))
if p>=60:
print("First division")
elif p>=45:
print("Second division")
elif p>=33:
print("Third division")
else:
print("Sorry!!! You are fail!")
"""
*Output*
Enter your percentage of marks:59
Second division
"""
Repost from O Level Previous paper
str=input("Enter any string:")
for i in str:
print(i)
"""
*OUTPUT*
Enter any string:Easy
E
a
s
y
"""
Repost from O Level Previous paper
for i in range(1,11):
print(i,end=" ")
"""
*Output*
1 2 3 4 5 6 7 8 9 10
"""
Repost from O Level Previous paper
*#taking user input
no=int(input("Enter any number:"))
cpy=no
rev=0
while no!=0:
#extracting last digit
r=no % 10;
rev=rev*10+r
#removing last digit
no=int(no/10)
if cpy==rev:
print("Given number is palindrome")
else:
print("Not palindrome")
"""
*Output*
Enter any number:1551
Given number is palindrome
""" *
Repost from O Level Previous paper
for i in range(1,6):
for j in range(1,6):
if i>=j:
print("{} ".format(i),end="")
else:
print(" ",end="")
print("")
"""
*Output*
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
"""
Repost from O Level Previous paper
for i in range(1,6):
for j in range(1,6):
if i>=j:
print("* ",end="")
else:
print(" ",end="")
print("")
"""
*Output*
*
* *
* * *
* * * *
* * * * *
"""
Repost from O Level Previous paper
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
<body>
Enter Number<input type="text" id="f">
<h2>
<button onclick="fact()">calculate the factorial</button>
</h2>
<p id="result"></p>
<script type="text/javascript">
function fact() {
let a =Number(document.getElementById('f').value);
let f=1
for(let i=1; i<=a; i++)
f=f*i
document.getElementById("result").innerHTML = "factorial is =" + f
}
</script>
</body>
</html>
Repost from O Level Previous paper
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<table>
<form action="">
<tr>
<td>Enter First Number</td>
<td><input type="text" id="p"></td>
</tr>
<tr>
<td>Enter End Range</td>
<td><input type="text" id="r"></td>
</tr>
</form>
<tr>
<th>
<button onclick="simple()">click me</button>
</th>
</tr>
</table>
<script>
function simple(){
let p=parseInt(document.getElementById("p").value);
let n=parseInt(document.getElementById("r").value);
for(let i=p; i<=n; i++){
let count=0
for(let j=1; j<=i; j++){
if(i%j==0){
count++
}
}
if(count==2){
document.write("prime number serias =" + i)
}
}
}
</script>
</body>
</html>
Repost from O Level Previous paper
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)
Repost from O Level Previous paper
# Square pattern program
size = 5
for i in range(0, size):
# printing * for 'size' times and a new line
print("*" * size)
اکنون در دسترس! پژوهش تلگرام ۲۰۲۵ — مهمترین بینشهای سال 
