# string ='I Love You'
# a = string[0]
# b = string[2:6]
# c = string[7:10]
# print(a,b,c)

# ###################################

#4. 承上題，將取出的I love you反轉成uoy evol I。

# string ='I Love You'

# string[::-1]

# print(string[::-1])

###################################

# #明寫情書給女朋友abey，想寫I love you so so ... (100次) much。請用Python來協助他。

# a = 'I Love You'

# b = ' So'

# c = 'much'

# print(a,b*100,c)

####################################

# a = 'I Love You'

# b = ' So'

# c = 'much' 

# import random #random 是隨機數模組套件

# x = random.randint(1, 100)#設定隨機數X 
 
# print(a,b*x,c)

# d = b*x

# sub = 'So'

# print('So 的次數',d.count(sub))










































