Skip to main content
← CoursesPython FoundationsModule 1 · Fundamentals of syntaxCurrency converterscenario7 / 170
💬 Discuss🧪 Playground+100 XP
Task
📝 **Task:** Currency converter. Write a simple program that converts USD to UAH. 📋 **Steps:** 1. Variables `usd` (100) and `rate` (41.5) are already defined — don't change them 2. Compute UAH: `usd * rate` 3. Store in a variable `uah` 4. Print `uah` 💡 **Similar example (EUR to GBP):** ```python eur = 50 gbp_rate = 0.85 gbp = eur * gbp_rate print(gbp) # Prints: 42.5 ``` ⚠️ **Expected output:** `4150.0` (with the dot and zero — float multiplication returns a float).

Keep going

✏️ Write your code here
🐍
Loading Python...
First visit only — ~5-10s. Stays cached afterward.
📊 Result
Press Run to see result...
📣 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…