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
Added a new solution using reduce and lambda functions
"sorted" can be worked on set, tuple because list.sort() is only there in list
'''Solution by: parian5 ''' from math import sqrt C, H = 50, 30 mylist = input().split(',') print(*(round(sqrt(2*C*int(D)/H)) for D in mylist), sep=",") '''Solution by: Utkarsh4697 ''' from math import sqrt...
When we use more than 2 duplicates than the program gives us an incorrect solution. the program only works on 2 duplicates. so I think we need to use a...
I request you to add my own solution which is easier than other solutions.
 it doesn't work properly in removing duplicates
num = int(input()) result = {} for i in range(1, num + 1): result.setdefault(i, i * i) i += 1 print(result)
solution for question 91 l = [] string = input("Enter the string: ").split(' ') for i in range(len(string)): l.append(string[len(string)-i-1][::-1]) a = ' '.join(l)