Q31. What does add(3, 5) return if def add(a,b): return a + b?
Learn Mode
Practice & Learn
View correct answers for each question to enhance your understanding.
Q32. Which keyword is used to define a function in Python?
Q33. What is a Python module?
Q34. What is the output of the provided nested conditional code? temperature, humidity, wind_speed = 25, 60, 15 print("Hot" if temperature > 30 and humidity > 50 else "Warm" if temperature == 25 and wind_speed > 10 else "Cool" if temperature < 20 and humidity < 30 else "Moderate")
Q35. What does the range() function do in Python?
Q36. Which loop type is used to iterate over a collection such as lists?
Q37. Purpose of range() function?
Q38. Correct syntax for for loop?
Q39. Which loop runs while condition is true?
Q40. What is loop used for?