# name = input()

# the entered name is dany lipsker
# it has: 12 character
# we count from 0 to 11
# first digit is 0
# last digit is 11

# print(name [3])         # the output is: y
# print(name [-7])        # the output is "l"
# print(name [1:4])       # the output is "any"  ---> pay attention that 4 is not included!!!!

# string methods
stamMila = "the cosT of oIl in 1984 waS 25 dollAr for a BarRel"

print()
print("stamMila =", stamMila)
print()
print("capitalize of a string is: ", stamMila.capitalize())  # Capitalize the string
print()
print("casefold of a string is: ", stamMila.casefold())  # convert the string to lower case
print()
print("center of a string is: ", stamMila.center(4))  # letter "e"
print()
print("count of a string is: ", stamMila.count("i"))  # letter "i"
print()
print("encode of a string is: ", stamMila.encode())
print()
print("endswith of a string is: ", stamMila.endswith("3"))  # does it ends with "3"??? YES/NO
print()
print("expandtabs of a string is: ", stamMila.expandtabs())  # sets the tabs of a string
print()
print("find of a string is: ", stamMila.find("rr"))  # find the index where this substring is found
print()
print("format of a string is: ", stamMila.format())
print()
print("format_map of a string is: ", stamMila.format_map(5))
print()
print("index of a string is: ", stamMila.index("B"))
print()
print()
print("isalnum of a string is: ", stamMila.isalnum())
print()
print("isalpha of a string is: ", stamMila.isalpha())
print()
print("isdecimal of a string is: ", stamMila.isdecimal())
print()
print("isdigit of a string is: ", stamMila.isdigit())
print()
print("isidentifier of a string is: ", stamMila.isidentifier())
print()
print("islower of a string is: ", stamMila.islower())
print()
print("isnumeric of a string is: ", stamMila.isnumeric())
print()
print("isprintable of a string is: ", stamMila.isprintable())
print()
print("isspace of a string is: ", stamMila.isspace())
print()
print("istitle of a string is: ", stamMila.istitle())
print()
print("isupper of a string is: ", stamMila.isupper())
print()
print("join of a string is: ", stamMila.join(" d "))
print()
print("ljust of a string is: ", stamMila.ljust(3))
print()
print("lower of a string is: ", stamMila.lower())
print()
print("lstrip of a string is: ", stamMila.lstrip())
print()
print("maketrans of a string is: ", stamMila.maketrans("4", "g"))
print()
print("partition of a string is: ", stamMila.partition(" "))
print()
print("replace of a string is: ", stamMila.replace("Bar", "XyZ"))
print()
print("rfind of a string is: ", stamMila.rfind("8"))
print()
print("rindex of a string is: ", stamMila.rindex("cosT"))
#print()
#print("rjust of a string is: ", stamMila.rjust())
print()
print("rpartition of a string is: ", stamMila.rpartition(" "))
print()
print("rsplit of a string is: ", stamMila.rsplit("8"))
print()
print("rstrip of a string is: ", stamMila.rstrip())
print()
print("splitlines of a string is: ", stamMila.splitlines(13))
print()
print("startwith of a string is: ", stamMila.startswith("Dany"))
print()
print("strip of a string is: ", stamMila.strip()) #returns a trimmed version of the string
print()
print("swapcase of a string is: ", stamMila.swapcase())
print()
print("title of a string is: ", stamMila.title())
#print()
# print("translate of a string is: ", stamMila.translate(1))
print()
print("upper of a string is: ", stamMila.upper())
print()
print("zfill of a string is: ", stamMila.zfill(7))


