TG Telegram Group & Channel
Python Codes | United States America (US)
Create: Update:

4. String Basics

>>> s='python_codes'
>>> s
'python_codes'

>>> len(s)
12

>>> s[0]
'p'

>>> s[1:]
'ython_codes'

>>> s
'python_codes'

>>> s[:7]
'python_'

>>> s[:]
'python_codes'

>>> s[::1]
'python_codes'

>>> s[::-1]
'sedoc_nohtyp'

>>> var = "a"
>>> var*10
'aaaaaaaaaa'

>>> s=s+" python channel"
>>> s
'python_codes python channel'

>>> s.upper()
'PYTHON_CODES PYTHON CHANNEL'

>>> s.lower()
'python_codes python channel'

>>> s.split('codes')
['python_', ' python channel']

@python_codes

4. String Basics

>>> s='python_codes'
>>> s
'python_codes'

>>> len(s)
12

>>> s[0]
'p'

>>> s[1:]
'ython_codes'

>>> s
'python_codes'

>>> s[:7]
'python_'

>>> s[:]
'python_codes'

>>> s[::1]
'python_codes'

>>> s[::-1]
'sedoc_nohtyp'

>>> var = "a"
>>> var*10
'aaaaaaaaaa'

>>> s=s+" python channel"
>>> s
'python_codes python channel'

>>> s.upper()
'PYTHON_CODES PYTHON CHANNEL'

>>> s.lower()
'python_codes python channel'

>>> s.split('codes')
['python_', ' python channel']

@python_codes


>>Click here to continue<<

Python Codes




Share with your best friend
VIEW MORE

United States America Popular Telegram Group (US)