HW03 判斷敘述式
1. NotebookLM 2. 學習卡 3. 影片 4. 寫1個程式需附加說明 Create a README For Github Weather-Based Activity Recommendation 📌 Introduction This is a simple Python program that recommends an activity based on the weather temperature and humidity. The program uses if , else , and logical operators ( and ) to determine which activity is suitable for the given weather conditions. 🎯 Program Objective The program asks the user to enter: Temperature: Warm or Cold Humidity: Humid or Dry Based on the user's input, it recommends one of four activities. 💻 Source Code temp = input('Enter the temperature: (warm/cold): ') hum = input('Enter humidity: (humid/dry): ') if temp == 'warm' and hum == 'dry': print('Play Basketball') else: if temp == 'warm' and hum == 'humid': print('Play Tennis') else: if temp == 'cold' and hum == 'dry': print('Play Cricket') else: ...