Lesson 6 of 34
Strings: टेक्स्ट के साथ काम
9 min 20 XP
Strings के साथ उपयोगी tools आते हैं: upper() बड़े अक्षर बनाता है, lower() छोटे अक्षर, और len() अक्षरों की गिनती करता है।
Example: edit me and press Run
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.f-string से आप variables सीधे टेक्स्ट में रख सकते हैं: quotes से पहले f लिखें और variable को { } के अंदर रखें।
Example: edit me and press Run
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.Index 0 से शुरू होता है: name[0] पहला अक्षर है और name[-1] आख़िरी।