mystr=' name&sam age&18 gender&male number&18 height&180 weight&60 ' print(mystr[::-1]) print(mystr.split("&",6)) print(mystr.find("sam")) print(mystr.index("sam")) print(mystr.find("50")) print(mystr.count("18")) print(mystr.replace("60","65")) print(mystr.split(" ")) print(mystr.title()) print(mystr.strip()) print(mystr.split("number",2))
print(mystr.index("50"))