Updated On : Aug-07,2022 Time Investment : ~10 mins

Python Quiz On Sets

  1. What is output of below code?
    def surprising_function(value):
        thing = 0
        for counter in range(value+1):
            thing = thing + counter
        return thing  
    
    print(surprising_function(5))

Newsletter Subscription