summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRishi-k-s <rishikrishna.sr@gmail.com>2023-03-22 20:26:32 +0530
committerRishi-k-s <rishikrishna.sr@gmail.com>2023-03-22 20:26:32 +0530
commit6b50a161bf0312bdce350e03872ac1842c9f7321 (patch)
tree7bd82f5fe544d60122f0b0bdabb1522862da5364
parentda9adf64f4c7a1d5f6fff559c47d62ede6d3255c (diff)
boards
-rw-r--r--BIOPIC.txt3
-rw-r--r--BoardPracticals/primeFromRange.py16
-rw-r--r--PLANTS.datbin0 -> 142 bytes
-rw-r--r--SHIVAJI.TXT3
-rw-r--r--boardexams.py121
-rw-r--r--kautha/test.py40
-rw-r--r--poem.txt1
7 files changed, 182 insertions, 2 deletions
diff --git a/BIOPIC.txt b/BIOPIC.txt
new file mode 100644
index 0000000..7664817
--- /dev/null
+++ b/BIOPIC.txt
@@ -0,0 +1,3 @@
+Last time he went to Agra,
+there was too much crowd, which he did not like.
+So this time he decided to visit some hill station. \ No newline at end of file
diff --git a/BoardPracticals/primeFromRange.py b/BoardPracticals/primeFromRange.py
index 975064e..362eb0c 100644
--- a/BoardPracticals/primeFromRange.py
+++ b/BoardPracticals/primeFromRange.py
@@ -126,6 +126,18 @@ import csv
# print(p,end="\t")
# print()
-l1 = [1,2,3,4,5]
+# l1 = [1,2,3,4,5]
-print(l1[:])
+# print(l1[:])
+
+i = 0
+
+while i<4:
+ i+=1
+print(i)
+
+
+# for i in range(5,26):
+# if(i == 10):
+# pass
+# print(i) \ No newline at end of file
diff --git a/PLANTS.dat b/PLANTS.dat
new file mode 100644
index 0000000..771f924
--- /dev/null
+++ b/PLANTS.dat
Binary files differ
diff --git a/SHIVAJI.TXT b/SHIVAJI.TXT
new file mode 100644
index 0000000..35c33a5
--- /dev/null
+++ b/SHIVAJI.TXT
@@ -0,0 +1,3 @@
+Shivaji was born in the family of Bhonsle.
+He was devoted to his mother Jijabai.
+India at that time was under Muslim rule. \ No newline at end of file
diff --git a/boardexams.py b/boardexams.py
new file mode 100644
index 0000000..7e1d857
--- /dev/null
+++ b/boardexams.py
@@ -0,0 +1,121 @@
+# def func1(a,b):
+# c = a+b
+# print(c)
+
+# x = 10
+# y =20
+# func1(x,y)
+
+# def func1(*sidhan):
+# for i in sidhan:
+# print(i)
+
+
+# func1(10,20,30)
+
+# x = 6 < 12 and not (20 > 15) or (10 > 5)
+# print(x)
+
+# def change(A):
+# S=0
+# for i in range(len(A)//2):
+# S += (A[i]*2)
+# return S
+# B = [10,11,12,30,32,34,35,38,40,2]
+
+# C = change(B)
+
+# print('Output is',C)
+
+
+# def Sum3(L):
+# sum = 0
+# for i in L:
+# if(i%10 == 3):
+# sum+= i
+# return sum
+# print(Sum3([ 123, 10, 13, 15, 23]))
+
+# def ChangeGender():
+# changedList = []
+# fp_r = open("BIOPIC.txt","r")
+# lineList = fp_r.readlines()
+# for eachLine in lineList:
+# newLine = eachLine.replace("he","she")
+# changedList.append(change)
+
+# ChangeGender()
+
+# def ChangeGender():
+# fp_r = open("BIOPIC.txt","r")
+# line = fp_r.read()
+# newline = line.replace("he","she")
+# print(newline)
+
+# ChangeGender()
+# def Count_Line():
+# fp_r = open("SHIVAJI.TXT","r")
+# counter = 0
+# lineList = fp_r.readlines()
+# for i in lineList:
+# counter +=1
+# return counter
+
+# print(Count_Line())
+# import pickle
+# def WRITERED():
+# fp_w = open("PLANTS.dat","ab")
+# id = input("Enter ID: ")
+# nm = input("Enter Name: ")
+# pr = input("Enter Price: ")
+# userList = [id,nm,pr]
+# pickle.dump(userList,fp_w)
+# fp_w.close()
+
+# def SHOWHIGH():
+# fp_r = open("PLANTS.dat","rb")
+# while True:
+# try:
+# x = pickle.load(fp_r)
+# print(x)
+# except EOFError:
+# break
+
+# fp_r.close()
+
+# menu = True
+
+# while menu:
+# x = int(input("-->"))
+# if(x == 1):
+# WRITERED()
+# elif(x == 2):
+# SHOWHIGH()
+# else:
+# menu = False
+
+# x = "Sreeejesh is beactyful"
+# x= x.split()
+# print(x)
+
+# a = [1,2,3]
+# b = ["a","b","c"]
+
+# dic = {}
+
+# for i in range(len(a)):
+# dic[a[i]] = b[i]
+
+# print(dic)
+
+# import random
+# AR=[20,30,40,50,60,70]
+# FROM=random.randint(1,3)
+# TO=random.randint(2,4)
+# for K in range(FROM,TO+1):
+# print(AR[K],end="#")
+
+a= []
+p = str(a)
+k = int(a)
+print(k) \ No newline at end of file
diff --git a/kautha/test.py b/kautha/test.py
new file mode 100644
index 0000000..ee06979
--- /dev/null
+++ b/kautha/test.py
@@ -0,0 +1,40 @@
+kooz = 20
+num2 = 10
+
+
+#wap to mult 2 nos and divide that number with 5
+# wap to take a num and chk if its div by 7 and if is print hello
+
+# life = 214
+# if life%7 == 0:
+# print("Hello")
+# else:
+# print("suiii")
+
+#--- Looping stateementts:
+# for loop, while loop
+
+#data types
+# str = "kooz"
+# tup = ("k","o","o",10)
+# list1 = ["k","o",45,"z"]
+
+# dict1 = {1:"a",8:"b"}
+
+# range(lowerlimit, upper limit+1)
+
+
+# +
+# -
+# *
+# /
+# **
+
+# // --> floor division
+# % --> modulus
+
+
+for i in range(1,21,2):
+ print(i, end =" ")
+
+ \ No newline at end of file
diff --git a/poem.txt b/poem.txt
new file mode 100644
index 0000000..bc0379a
--- /dev/null
+++ b/poem.txt
@@ -0,0 +1 @@
+He is the man and women women man \ No newline at end of file