VIP 👤
🏠 Home
Prestatietests
📊 Alle benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List applicaties 🎨 Creatieve vrije pagina's 🎯 FSACB - Ultieme showcase 🌍 Vertaalbenchmark
Modellen
🏆 Top 10 modellen 🆓 Gratis modellen 📋 Alle modellen ⚙️ Kilo Code
Bronnen
💬 Promptbibliotheek 📖 AI-woordenlijst 🔗 Nuttige links 🔌 AI-API's en routers
beginner

Handling Empty in Format

#formatting #placeholders #strings

Handle empty strings in a formatted sentence.

Write a program that has two variables, `city` and `country`. Set `city` to an empty string ("") and `country` to 'France'. Print a message that says 'I live in , France' if city is empty, or 'I live in Paris, France' if city is 'Paris'.