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] கடைசி எழுத்து.