PythonV1.0There should be one-- and preferably one --obvious way to do it.!text_path='User/Desktop/fileA'withopen(text_path)asfile:file.write('helloworld!')“”‘’‘‘‘’’’what_he_does='plays'his_instrument='guitar'his_name='RobertJohnson'artist_intro=his_name+what_he_does+his_instrumentprint(artist_intro)RobertJohnsonplaysguitarnum=1string='1'print(num+string)num=1string='1'num2=int(string)print(num+num2)print(type(word))#IDEwords='words’*3print(words)wordswordswordsword='aloooooongword'num=12string='bang!'total=string*(len(word)-num)#'bang!'*3print(total)name='MynameisMike'print(name[0])'M'print(name[-4])'M'print(name[11:14])#from11thto14th,14thoneisexcluded'Mik'print(name[11:15])#from11thto15th,15thoneisexcluded'Mike'print(name[5:])'meisMike'print(name[:5])'Myna':name[11:14]name[5:]name[:5][:5]print(word[0])print(word[2:4])print(word[-3:-1])word='friends'find_the_evil_in_your_friends=\word[0]+word[2:4]+word[-3:-1]fiend'://ww1.site.cn/85cc87jw1ex23yhwws5j20jg0szmzk.png''://ww3.site.cn/185cc87jw1ex23yyvq29j20jg0t6gp4.gif'url='=url[-10:]print(file_name)0kuwex.jpgphone_number='1386-666-0006'hiding_number=phone_number.replace(phone_number[:9],'*'*9)print(hiding_number)replace(phone_number[:9]'*'*9*********0006Cancel168search='168'num_a='1386-168-0006'num_b='1681-222-0006'print(search+'isat'+str(num_a.find(search))+'to'+str(num_a.find(search)+len(search))+'ofnum_a')print(search+'isat'+str(num_b.find(search))+'to'+str(num_b.find(search)+len(search))+'ofnum_b')168isat5to8ofnum_a168isat0to3ofnum_b____awordshecangetwhatshe____for.A.WithB.cameprint('{}awordshecangetwhatshe{}for.'.format('With','came'))print('{preposition}awordshecangetwhatshe{verb}for'.format(preposition='With',verb='came'))print('{0}awordshecangetwhatshe{1}for.'.format('With','came'))city=input(writedownthenameofcity:)url=={}.format(city)