Python Programming
                                
                            
                            
                    
                                
                                
                                June 15, 2025 at 04:19 PM
                               
                            
                        
                            *Here are the Answers for the previous quizzes* ✅
*Q1. What keyword is used to define a function in Python?*
✅ *Answer: C. def*
The def keyword is used to define a function in Python. Example: def greet():
*Q2. What is the output of this code?*
def add(a, b):
    return a + b
print(add(3, 4))
✅ *Answer: A. 7*
The function returns 3 + 4, which is 7, and print() displays it.
*Q3. What happens if a function has no return statement?*
✅ *Answer: B. It returns None* 
All functions in Python return None by default if there’s no return statement.
*Q4. Which of the following is a correct way to call this function?*
def greet(name):
    print("Hello", name)
✅ *Answer: B. greet("Alice")*
The function expects one parameter, and "Alice" is passed correctly.
*Q5. What does the following function return?*
def check(x):
    if x > 5:
        return True
print(check(3))
✅ *Answer: C. None*
Since 3 is not greater than 5, the condition fails and there’s no return value — so Python returns None.
*React with ❤️ if you're ready for the next topic*
Python Coding Challenge: https://whatsapp.com/channel/0029VaiM08SDuMRaGKd9Wv0L/1661
                        
                    
                    
                    
                    
                    
                                    
                                        
                                            ❤️
                                        
                                    
                                        
                                            👍
                                        
                                    
                                        
                                            ❤
                                        
                                    
                                        
                                            🇮🇳
                                        
                                    
                                        
                                            🇵🇸
                                        
                                    
                                        
                                            🇮🇱
                                        
                                    
                                        
                                            😢
                                        
                                    
                                        
                                            😂
                                        
                                    
                                        
                                            ♥
                                        
                                    
                                        
                                            🙏
                                        
                                    
                                    
                                        395