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] അവസാന അക്ഷരം.

Challenge

+20 XP

first = "Priya", last = "Kumar". മുഴുവൻ പേര് "Priya Kumar" print ചെയ്ത്, അടുത്ത വരിയിൽ അതിന്റെ നീളം print ചെയ്യൂ.

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.