WEEK 1 Solutions Get link Facebook X Pinterest Email Other Apps - January 27, 2021 1-A2-B3-D4-B5-A6-C7-D8-B9-C10-A 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