VIP 👤
🏠 Startseite
Vergleiche
📊 Alle Benchmarks 🦖 Dinosaurier v1 🦖 Dinosaurier v2 ✅ To-Do-Listen-Apps 🎨 Kreative freie Seiten 🎯 FSACB - Ultimatives Showcase 🌍 Übersetzungs-Benchmark
Modelle
🏆 Top 10 Modelle 🆓 Kostenlose Modelle 📋 Alle Modelle ⚙️ Kilo Code
Ressourcen
💬 Prompt-Bibliothek 📖 KI-Glossar 🔗 Nützliche Links 🔌 KI-APIs & Router
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'.