break-the-ice-with-python
                                
                                
                                
                                    break-the-ice-with-python copied to clipboard
                            
                            
                            
                        The repository is about 100+ python programming exercise problem discussed, explained, and solved in different ways
add new solution to question 16
Added a new solution for question 17
Solution proposed by hajimalung baba should be as following since the output won't be comma seperated: print(*(binary for binary in input().split(',') if int(binary,base=2)%5==0),sep=',') instead of print(*(binary for binary in input().split(',')...
here added one extra solution to question 1.
#53 c=[] account = input('please enter the username : ') for i in account : c.append(i) if i == '@': break print("".join(c[0:c.index(i)]))
``` def factorial(num): if num == 1: return 1 else: return `num` * factorial(num - 1) ```
class divisible : def by_seven(self,n): for number in range(0,n+1): if number % 7 == 0 : print(number) divisible=divisible() generator = divisible.by_seven(int(input("please enter the number : ")))
lst=[1,2,3,4,5,6,7,8,9] a=list(filter((lambda x : x%2 !=0),lst)) a=list(map((lambda a:a**2),a)) print(a)