@tushar-br/desktop 1.0.240 → 1.0.242
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614416363_iits_ch5_ppt.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614416502_IITS-Unit_1.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614416595_IITS-Unit_3_ENGLISH.docx +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614416686_IITS-Unit_3_GUJARATI_Final.docx +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614417004_IITS-Unit_4_English.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614417334_IITS-Unit_4_GUJARATI_.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614417447_IITS-Unit_6_English.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614433914_Projects_of_Mathematics__4300001_.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614433974_Tutorail_10-11-12_Coordinate_Geometry.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614434040_Tutorial_1_2_3.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614434096_Tutorial_13_14.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614434237_Tutorial-2_23-11-22.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614483641_prectical-12.py +14 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484078_prectical-13.py +14 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484259_prectical-14.py +34 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484459_prectical-16.py +12 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484556_prectical-17.py +12 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484630_prectical-18.py +38 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484705_prectical-19.py +7 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484858_prectical-20.py +6 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484941_prectical-21.py +9 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485016_prectical-22.py +24 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485102_prectical-23.py +35 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485209_prectical-24.py +38 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485291_prectical-25.py +61 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485370_precttical-15.py +46 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485459_prectical-3.py +5 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485542_prectical-4.py +13 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485626_prectical-5.py +25 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485708_prectical-6.py +13 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485805_prectical-7.py +14 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485891_prectical-8.py +18 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485969_prectical-9.py +14 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614486072_prectical-10.py +26 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614486143_prectical-11.py +4 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614433537_Maths_Diplomaitmorbi.netlify.app.pdf.ts_part_0 +0 -0
package/package.json
CHANGED
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614416363_iits_ch5_ppt.pdf
ADDED
|
Binary file
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614416502_IITS-Unit_1.pdf
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614434040_Tutorial_1_2_3.pdf
ADDED
|
Binary file
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614434096_Tutorial_13_14.pdf
ADDED
|
Binary file
|
|
Binary file
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614483641_prectical-12.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# prectical 12 - Develop a program to find odd and even numbers from 1 to N numbers.(where N an intiger number)
|
|
2
|
+
|
|
3
|
+
a=int(input("Enter Any number:--"))
|
|
4
|
+
x=0
|
|
5
|
+
if a>1:
|
|
6
|
+
for i in range(2,int(a/2)+1):
|
|
7
|
+
if a % i == 0:
|
|
8
|
+
x=1
|
|
9
|
+
break
|
|
10
|
+
|
|
11
|
+
if x==0:
|
|
12
|
+
print(a,"is a prime Number")
|
|
13
|
+
else:
|
|
14
|
+
print(a,"is not a Prime Number")
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484078_prectical-13.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# pectical - 13 ---write a program to show whether the entered number is prime or not prime.
|
|
2
|
+
|
|
3
|
+
a=int(input("Enter any number"))
|
|
4
|
+
X=0
|
|
5
|
+
if a>1:
|
|
6
|
+
for i in range(2,int(a/2)):
|
|
7
|
+
if a%i ==0:
|
|
8
|
+
X=1
|
|
9
|
+
break
|
|
10
|
+
|
|
11
|
+
if X ==0:
|
|
12
|
+
print(a,"is prime")
|
|
13
|
+
else:
|
|
14
|
+
print(a,"is not prime")
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484259_prectical-14.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# create a program to display the following pattens.
|
|
2
|
+
'''
|
|
3
|
+
(A) (B)
|
|
4
|
+
1 *****
|
|
5
|
+
12 ****
|
|
6
|
+
123 ***
|
|
7
|
+
1234 **
|
|
8
|
+
12345 *
|
|
9
|
+
'''
|
|
10
|
+
#(A)
|
|
11
|
+
n=int(input("Enter number="))
|
|
12
|
+
|
|
13
|
+
for i in range(1,n+1):
|
|
14
|
+
for j in range(1,i+1):
|
|
15
|
+
print(j,end='')
|
|
16
|
+
print("")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#(B)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
a=int(input("Enter number"))
|
|
30
|
+
|
|
31
|
+
for i in range(1,a+1):
|
|
32
|
+
for j in range(a,i-1,-1):
|
|
33
|
+
print("1+64-*36354*9",end='')
|
|
34
|
+
print(" ")
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484556_prectical-17.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#Practical No.17: Write a program using the function that reverses the entered value.
|
|
2
|
+
|
|
3
|
+
def reverse(no1):
|
|
4
|
+
y=0
|
|
5
|
+
while no1 >0:
|
|
6
|
+
reminder=no1 % 10
|
|
7
|
+
y=(y * 10) + reminder
|
|
8
|
+
no1=no1//10
|
|
9
|
+
print("Reverse No=", y)
|
|
10
|
+
|
|
11
|
+
no1=int(input("Enter the number :"))
|
|
12
|
+
reverse(no1)
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484630_prectical-18.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#Practical No.18: Write a program that determines whether a given number is an armstrong number or a palindrome using a user-defined function.
|
|
2
|
+
|
|
3
|
+
def Armstrong():
|
|
4
|
+
print("Enter a number For check Armstrong or not")
|
|
5
|
+
no1=int(input(":-"))
|
|
6
|
+
sum=0
|
|
7
|
+
|
|
8
|
+
temp=no1
|
|
9
|
+
while temp >0:
|
|
10
|
+
digit = temp % 10
|
|
11
|
+
sum += digit ** 3
|
|
12
|
+
temp //= 10
|
|
13
|
+
if no1 == sum:
|
|
14
|
+
print(no1,"is an armstrong number")
|
|
15
|
+
else:
|
|
16
|
+
print(no1,"is not an Armstrong number")
|
|
17
|
+
def Palindrome():
|
|
18
|
+
print("\nEnter a Number for check Palindrome or not")
|
|
19
|
+
no1 = int(input(":-"))
|
|
20
|
+
temp = no1
|
|
21
|
+
rev = 0
|
|
22
|
+
while no1 > 0:
|
|
23
|
+
dig = no1 % 10
|
|
24
|
+
rev = rev *10 *dig
|
|
25
|
+
no1 = no1 // 10
|
|
26
|
+
if (temp == rev):
|
|
27
|
+
print("The number is palindrome !")
|
|
28
|
+
else:
|
|
29
|
+
print("not a palindrome !")
|
|
30
|
+
print("\nPress 1 for armstrong number \nPress 2 for Palindrome number")
|
|
31
|
+
a =int(input("\nchoice 1/2 = "))
|
|
32
|
+
|
|
33
|
+
if a == 1 :
|
|
34
|
+
Armstrong()
|
|
35
|
+
elif a == 2:
|
|
36
|
+
Palindrome()
|
|
37
|
+
else:
|
|
38
|
+
print("Wrong input")
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614484941_prectical-21.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#Practical No.21: Write a program to check if a substring is present in a given string.
|
|
2
|
+
|
|
3
|
+
string=(input("Enter any Text =>"))
|
|
4
|
+
word=(input("Enter word to find"))
|
|
5
|
+
|
|
6
|
+
if(string.find(word)==-1):
|
|
7
|
+
print("Sorry",word,"Is not There")
|
|
8
|
+
else:
|
|
9
|
+
print("Yes",word,"IS There")
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485016_prectical-22.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#Practical No.22: Write a program to count and display the number of vowels, consonants, uppercase, lowercase characters in a string.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
stringdata=input("ENTER ANY sTRING =>")
|
|
5
|
+
vowels = 0
|
|
6
|
+
consonants =0
|
|
7
|
+
uppercase = 0
|
|
8
|
+
lowercase = 0
|
|
9
|
+
list=['a','A','e','E','i','I','o','O','u','U']
|
|
10
|
+
|
|
11
|
+
for X in stringdata:
|
|
12
|
+
if X in LIST1:
|
|
13
|
+
vowels +=1
|
|
14
|
+
elif X.isalpha()==True and X!=" " :
|
|
15
|
+
consonantes += 1
|
|
16
|
+
if X.islower():
|
|
17
|
+
lowercase += 1
|
|
18
|
+
elif x.isupper():
|
|
19
|
+
uppercase += 1
|
|
20
|
+
|
|
21
|
+
print("Number of vowels :- ",vowels)
|
|
22
|
+
print("Number of consonants :- ",consonants)
|
|
23
|
+
print("Number of uppercase :-",uppercase)
|
|
24
|
+
print("Number of lowercase :-",lowercase)
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485102_prectical-23.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#Practical No.23: Develop programs to perform the following list operations.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
#a)To swap given two elements in a list. // b)To find the sum of elements in a list.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def swap():
|
|
11
|
+
list1=[]
|
|
12
|
+
print("Enter 4 values in the List")
|
|
13
|
+
n=4
|
|
14
|
+
for i in range(1,n+1):
|
|
15
|
+
y=int(input("Enter list value="))
|
|
16
|
+
list1.append(y)
|
|
17
|
+
print(list1)
|
|
18
|
+
pos1, pos2=1,3
|
|
19
|
+
list1[pos1], list1[pos2] = list1[pos2], list1[pos1]
|
|
20
|
+
print(list1)
|
|
21
|
+
|
|
22
|
+
def sum():
|
|
23
|
+
list1=[]
|
|
24
|
+
total = []
|
|
25
|
+
n= int(input("\nEnter Limit = "))
|
|
26
|
+
for i in range(1, n + 1):
|
|
27
|
+
y = int(input("Enter list value ="))
|
|
28
|
+
list1.append(y)
|
|
29
|
+
total=total+y
|
|
30
|
+
|
|
31
|
+
print(list1)
|
|
32
|
+
print("\nsum of all elements in given list:", total)
|
|
33
|
+
|
|
34
|
+
swap()
|
|
35
|
+
sum()
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485209_prectical-24.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#Practical No.24: Develop programs to perform the following list operations.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
#a)To check if an element exists in a given list. /// b)To find the smallest and largest element in a given list.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
'''---------------------------------------------------
|
|
8
|
+
------------------CODE------------------------------'''
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def find():
|
|
13
|
+
list1=[]
|
|
14
|
+
n=int(input("Enter list Limit = "))
|
|
15
|
+
for i in range (1, n+1):
|
|
16
|
+
y= int(input("Enter list value ="))
|
|
17
|
+
list1.append(y)
|
|
18
|
+
|
|
19
|
+
print(list1)
|
|
20
|
+
a = int(input("Enter check number :-"))
|
|
21
|
+
check = list1.count(a)
|
|
22
|
+
if check >0 :
|
|
23
|
+
print("Yes",a," exists in list")
|
|
24
|
+
else:
|
|
25
|
+
print("No",a," does not exists in list")
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def SmallLarge():
|
|
29
|
+
list1 = []
|
|
30
|
+
n= int(input("\nEnter List Limit = "))
|
|
31
|
+
for i in range (1,n+1):
|
|
32
|
+
y = int(input("Enter List Value ="))
|
|
33
|
+
list1.append(y)
|
|
34
|
+
print(list1)
|
|
35
|
+
print("\nMaximum Element in the list is : ", max(list1))
|
|
36
|
+
print("\nMaximum element inthe list is :",min(list1))
|
|
37
|
+
find()
|
|
38
|
+
SmallLarge()
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485291_prectical-25.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#Practical No.25:
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
'''
|
|
6
|
+
a) Given a list saved in variable: a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]. Write one line of
|
|
7
|
+
Python that takes this list and makes a new list that has only the even elements of this list
|
|
8
|
+
in it.
|
|
9
|
+
b) Create a list containing the square of all odd numbers from range 1 to 10.
|
|
10
|
+
c) Create a list of prime and non-prime numbers in range 1 to 50.
|
|
11
|
+
'''
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
"""---------------------------------------------'''
|
|
16
|
+
'''-------------------CODE----------------------"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def onlyEven():
|
|
21
|
+
list1 = [1,4,9,16,25,36,49,64,81,100]
|
|
22
|
+
list2= []
|
|
23
|
+
for X in list1:
|
|
24
|
+
if X % 2 == 0:
|
|
25
|
+
list2.append(X)
|
|
26
|
+
print("\nOnly Even value in list")
|
|
27
|
+
print(list2)
|
|
28
|
+
|
|
29
|
+
def onlyoddSquare():
|
|
30
|
+
list1 = []
|
|
31
|
+
list2 = []
|
|
32
|
+
for i in range (1,10):
|
|
33
|
+
list1.append(i)
|
|
34
|
+
|
|
35
|
+
print("\nonly odd Number")
|
|
36
|
+
for X in list1:
|
|
37
|
+
if X % 2!= 0:
|
|
38
|
+
Y = X*X
|
|
39
|
+
list2.append(y)
|
|
40
|
+
print("\nSquares of odd value in list",list2)
|
|
41
|
+
|
|
42
|
+
def Prime():
|
|
43
|
+
list1 = []
|
|
44
|
+
list2 = []
|
|
45
|
+
for X in range (1 , 50):
|
|
46
|
+
y =0
|
|
47
|
+
for i in range (2, int(X / 2) + 1):
|
|
48
|
+
if (X % i) == 0 :
|
|
49
|
+
y=1
|
|
50
|
+
break
|
|
51
|
+
if y==0:
|
|
52
|
+
list1.append(X)
|
|
53
|
+
else:
|
|
54
|
+
list1.append(X)
|
|
55
|
+
|
|
56
|
+
print("\nPrime number list :-", list1)
|
|
57
|
+
print("\nOn- prime number list :-",list2)
|
|
58
|
+
|
|
59
|
+
onlyEven()
|
|
60
|
+
onlyoddSquare()
|
|
61
|
+
Prime()
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485370_precttical-15.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# prectical -15 -- create a user -difind function print the fibonacci series 0 to N numbers.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def print_fib(n):
|
|
5
|
+
f1=0
|
|
6
|
+
f2=1
|
|
7
|
+
print(f1)
|
|
8
|
+
print(f2)
|
|
9
|
+
f3=0
|
|
10
|
+
while(True):
|
|
11
|
+
f3=f1+f2
|
|
12
|
+
if(f3<=n):
|
|
13
|
+
print(f3)
|
|
14
|
+
else:
|
|
15
|
+
break
|
|
16
|
+
f1=f2
|
|
17
|
+
f2=f3
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
n=int(input("Enter number-->"))
|
|
22
|
+
print_fib(n)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#n = value
|
|
27
|
+
|
|
28
|
+
def print_fib(n):
|
|
29
|
+
f1=0
|
|
30
|
+
f2=1
|
|
31
|
+
print(f1)
|
|
32
|
+
print(f2)
|
|
33
|
+
f3=0
|
|
34
|
+
for i in range(0,n-1,):
|
|
35
|
+
f3=f1+f2
|
|
36
|
+
print(f3)
|
|
37
|
+
f1=f2
|
|
38
|
+
f2=f3
|
|
39
|
+
n=int(input("Enter number-->"))
|
|
40
|
+
print_fib(n)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485542_prectical-4.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# prectical__4 -- Devlop a program to identify data-type in python.
|
|
2
|
+
a="tushar,ganesh,kapil,vadher"
|
|
3
|
+
print(type(a))
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
# k---- write a pythn program to calculate the sum of two numbers.
|
|
7
|
+
|
|
8
|
+
v1=int(input("Enter first value-->"))
|
|
9
|
+
v2=int(input("Enter second value-->"))
|
|
10
|
+
|
|
11
|
+
result=v1 + v2
|
|
12
|
+
|
|
13
|
+
print("----------------------------------5>",result)
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485626_prectical-5.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# prctical 5 -- create a program to read three number from the user the user andfind the average og the numbers.
|
|
2
|
+
|
|
3
|
+
num1=int(input("Enter NO1-->"))
|
|
4
|
+
num2=int(input("Enter NO2-->"))
|
|
5
|
+
num3=int(input("Enter NO3-->"))
|
|
6
|
+
|
|
7
|
+
sum=num1 + num2 + num3
|
|
8
|
+
avg=sum/3
|
|
9
|
+
|
|
10
|
+
print("avarage",avg)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# 1 -- implent the python proram to calculate total and avarage mark based on input from user.
|
|
16
|
+
|
|
17
|
+
num1=int(input("Enter NO1-->"))
|
|
18
|
+
num2=int(input("Enter NO2-->"))
|
|
19
|
+
num3=int(input("Enter NO3-->"))
|
|
20
|
+
|
|
21
|
+
sum=num1 + num2 + num3
|
|
22
|
+
avg=sum/3
|
|
23
|
+
total=sum
|
|
24
|
+
|
|
25
|
+
print("avarage=",avg,"TOTAL=",total)
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485708_prectical-6.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#prectical--6 -- Devlope a program that can calculate simple interest and compound interest on given data.
|
|
2
|
+
|
|
3
|
+
amount=int(input("Enter amount="))
|
|
4
|
+
rete=int(input("Enter rate="))
|
|
5
|
+
time=int(input("Enter time (in year)="))
|
|
6
|
+
|
|
7
|
+
print("simple interest=",amount*rete*time/100)
|
|
8
|
+
|
|
9
|
+
total=amount*(pow((1+rete/100),time))
|
|
10
|
+
|
|
11
|
+
compound_interest=total-amount
|
|
12
|
+
|
|
13
|
+
print("compound-interest=",compound_interest)
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485805_prectical-7.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#write a program to convet temperatuure from Fahrenheit to Celsius unit using equation: c=(F-32)/1.8
|
|
2
|
+
|
|
3
|
+
F=int(input("Enter Fahrenheit ="))
|
|
4
|
+
C=(F-32)/1.8
|
|
5
|
+
|
|
6
|
+
print("calsius",C)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# j --write a program to convert distance from milke to kilometres.
|
|
10
|
+
|
|
11
|
+
mile=float(input("Enter mile"))
|
|
12
|
+
KM=mile*1.609344
|
|
13
|
+
|
|
14
|
+
print("kilo metres",KM)
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485891_prectical-8.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# precticale -8 --- identify whether the scanned number is even or odd and print an approprite message
|
|
2
|
+
|
|
3
|
+
no=int(input("Enter number="))
|
|
4
|
+
|
|
5
|
+
if no % 2 == 0:
|
|
6
|
+
print(no,"is even")
|
|
7
|
+
else:
|
|
8
|
+
print(no,"is odd")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# j-write a python script whether a given number is positive or negative.
|
|
12
|
+
|
|
13
|
+
NO=int(input("Enter number"))
|
|
14
|
+
|
|
15
|
+
if NO > 0:
|
|
16
|
+
print("NO is positive")
|
|
17
|
+
else:
|
|
18
|
+
print("NO is nagative")
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614485969_prectical-9.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# prectical 9 -- create a program to find maximum number amoung the given three numbers.
|
|
2
|
+
|
|
3
|
+
no1=int(input("Enter NO.1 =>"))
|
|
4
|
+
no2=int(input("Enter NO.2 =>"))
|
|
5
|
+
no3=int(input("Enter NO.3 =>"))
|
|
6
|
+
|
|
7
|
+
if no1>no2 and no1>no3:
|
|
8
|
+
print(no1,"is max")
|
|
9
|
+
elif no2>no1 and no2>no3:
|
|
10
|
+
print(no2,"is max")
|
|
11
|
+
elif no3>no1 and no3>no2:
|
|
12
|
+
print(no3,"is max")
|
|
13
|
+
else:
|
|
14
|
+
print("All max")
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614486072_prectical-10.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#Develop a program to demonstarate the basic functionalities of a standard calculator.
|
|
2
|
+
|
|
3
|
+
print("press 1 for addition\n"
|
|
4
|
+
"press 2 for substac\n"
|
|
5
|
+
"press 3 for multiply\n"
|
|
6
|
+
"press 4 for devide\n")
|
|
7
|
+
choice = int(input("Enter choice 1,2,3,4--->"))
|
|
8
|
+
|
|
9
|
+
if choice == 1:
|
|
10
|
+
no1=int(input("Enter no1"))
|
|
11
|
+
no2=int(input("Enter no2"))
|
|
12
|
+
print(no1, "+", no2, "=", no1 + no2)
|
|
13
|
+
elif choice == 2:
|
|
14
|
+
no1=int(input("Enter no1"))
|
|
15
|
+
no2=int(input("Enter no2"))
|
|
16
|
+
print(no1, "-", no2, "=", no1 - no2)
|
|
17
|
+
elif choice == 3:
|
|
18
|
+
no1=int(input("Enter no1"))
|
|
19
|
+
no2=int(input("Enter no2"))
|
|
20
|
+
print(no1, "*", no2, "=", no1 * no2)
|
|
21
|
+
elif choice == 4:
|
|
22
|
+
no1=int(input("Enter no1"))
|
|
23
|
+
no2=int(input("Enter no2"))
|
|
24
|
+
print(no1, "/", no2, "=", no1 / no2)
|
|
25
|
+
else:
|
|
26
|
+
print("wrong input , plz input 1,2,3,4")
|