Week 3 Programming Assignment 1 Get link Facebook X Pinterest Email Other Apps - February 08, 2021 N=input() a=[int(i) for i in input().split()]for i in a: if(abs(i)%10!=4): print(i,end=" ")Special thanks to -Ayush Paul(ECE,1st year) Get link Facebook X Pinterest Email Other Apps Comments
Week 4 Programming Assignment 2 - February 15, 2021 def fact(num): product=1 while(num>1): product*=num num-=1 return product m=int(input()) #m=men n=int(input()) #n=women if m+n>20 or m<=n: print('invalid',end="") else: print(fact(m)*fact(n)*fact(m+1)//(fact(n)*fact(m+1-n)),end="") Read more
Week 3 Programming Assignment 2 - February 08, 2021 a=[int(x) for x in input().split()] a.sort() s2=a[1] a.reverse() l2=a[1] print(s2+l2,end="") Special thanks to -Ayush Paul(ECE,1st yr) Read more
Comments
Post a Comment