VIP 👤
🏠 Hem
Benchmarkar
📊 Alla benchmarkar 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List-applikationer 🎨 Kreativa fria sidor 🎯 FSACB - Ultimata uppvisningen 🌍 Översättningsbenchmark
Modeller
🏆 Topp 10 modeller 🆓 Gratis modeller 📋 Alla modeller ⚙️ Kilo Code
Resurser
💬 Promptbibliotek 📖 AI-ordlista 🔗 Användbara länkar 🔌 AI-API:er och routrar
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'.