Commit eab98f19 authored by Akhil's avatar Akhil

few other string examples

parent a5022848
str1 = 'hi'
str2 = 'akhil'
print(str1+str2)
str = 'akhil'
copiedstr = str
print(copiedstr)
print(id(str))
print(id(copiedstr))
#DIFF BETWEEN COPY AND CLONE
str = 'akhil'
length = len(str)
print(length)
str = 'akhil'[::-1]
print(str)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment