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] शेवटचे.