S

@Shobh89

QS.2

Python
1 year ago
i=100 while i>=1: print (i) i-=1

QS.1

Python
1 year ago
i=1 while i<=100: print(i) i+=1

13

Python
1 year ago
values={ ("float",9.0), ("int",9) } print(values)

12

Python
1 year ago
marks={} x=int(input("enter phy : ")) marks.update({"phy" : x}) x=int(input("enter math : ")) marks.update({"math" : x}) x=int(input("enter chem : ")) marks.update({"chem" : x})

12

Python
1 year ago
subjects={ "python","java","C++","python","javascript","java","python","java","C++","C" } print(len(subjects))

11

Python
1 year ago
dictionary={ "cat" : " a small animal ", "table" :[" a piece of furniture"," list of facts and figures"] } print(dictionary)

11

Python
1 year ago
grade=["C","D","A","A","B","B","A"] grade.sort() print(grade) print(grade.count("A"))

10

Python
1 year ago
list1=[1,2,1] list2=[1,2,3] copy_list1= list1.copy() copy_list1.reverse() if(copy_list1==list1): print("palindrome") else: print("Not palindrome")

9

Python
1 year ago
movies=[] mov=input("enter 1st movie: ") movies.append(mov) mov=input(" enter 2nd movie: ") movies.append(mov) mov=input("enter 3rd movie: ") movies.append(mov) print(movies)

8

Python
1 year ago
x=int(input("enter number : ")) if(x % 7 == 0): print(" multiple of 7") else: print("not a multiple of 7")

7

Python
1 year ago
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("first number is largest",a) elif(b>=c): print("second number is largest",b) else: print("third number is largest",c)

6

Python
1 year ago
num= int(input("enter number : ")) rem= num%2 if (rem==0) : print("Even") else : print("odd")

6

Python
1 year ago
str="Hi, $Iam the $ $ $ symbol $99.99" print(str.count("$"))

5

Python
1 year ago
name= input("enter your name : ") print("length of your name is", len(name) )

4

Python
1 year ago
a= int(input("enter first : ")) b=int(input("enter second : ")) print(a>=b)

3

Python
1 year ago
a= float(input("enter first : ")) b=float(input("enter second : ")) print("avg=", (a+b)/2)

3

Python
1 year ago
side=float(input("enter square side : ")) print("area =", side * side)

2

Python
1 year ago
first=int(input("enter first : ")) second=int(input("enter second : ")) print("sum =",first+second)

2

Python
1 year ago
a=2 b=5 sum=a+b print(sum)

1

Python
1 year ago
print('Hello world!')