Skip to main content
← CoursesPython FoundationsModule 3 · Functions and stringsPeredbach: umovi z and/orpredict39 / 170
💬 Discuss🧪 Playground+75 XP
Task
📝 **Task:** Predict output with `and`. ```python age = 16 has_id = True if age >= 18 and has_id: print("Can vote") else: print("Wait") ``` 💡 `and` requires BOTH conditions to be True.

Keep going

🔮 Predict the output

Read the code carefully

What will the program print? Write here:

📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…