Q33. What is a Python module? A variable storing a number A way to define a loop A built-in data type like int or str A file containing functions, variables, etc
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") Hot Warm Cool Moderate
Q35. What does the range() function do in Python? Generates a list of numbers Creates a sequence of numbers Calculates the sum of numbers Prints a range of numbers
Q38. Correct syntax for for loop? for each statement in a sequence for variable in range() for loop in sequence for variable in condition