WEEK 0 Solutions Get link Facebook X Pinterest Email Other Apps - January 27, 2021 1-B2-C3-A4-B5-C6-A7-B8-D9-C10-D 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