MCQ Answers:
1. 6*1 - 13
2. 2%3 - 104
3. 3/4 - 17
4. 6*15 - 16
5. 9-2 - 1
6. 2^a=a^3 - 1
7. 8-2 - 160
8. 4-5 - 24
9. 7%3 - 126
10. 5+2 - 12
11. 4+2 - 64
12. 16+20 - 320
13. 2+3 - 1
14. 120-2 - 1
15. 4-b=b-2 - 16/3
16. 4^3 - 21
17. 5^3=x^3 - 19/3
18. 6-4 - 200
19. 3/2 - 10
20. 2+8 - 64
21. 12/7 - 4
22. 8^5 - 90
23. 5*9 - 47
24. 9%11 - 210
25. 12^4 - 12
Program:
# Reverse asterisk
num=int(input())
for i in range(1,num+1):
print("*"*(num-i),end="")
for j in range(i,0,-1):
print(j,end="")
print()
# Non common alphabet
a=input().strip()
b=input().strip()
l=[]
for i in b:
if i not in a and i not in l:
l.append(i)
for i in a:
if i not in b and i not in l:
l.append(i)
print(*l,sep="")
0 Comments