text: # -*- coding: utf-8 -*-
  
  """
  
  STRING METHOD
  """
  
  text = 'This is a text'
  text_list = ['cat', 'dog', 'bat']
  
  text.lower()  # convert to text lowercase
  text.upper()  # convert to text uppercase
  text.islower()  # return boolean
  text.isupper()  # return boolean
  text.upper().isupper()  # statement valid
  text.isalpha()  # letters only
  text.isspace()  # whitespace only
  text.istitle()  # titlecase only
  text.isalnum()  # letters and numbers only
  # text.isdecimal()  # numbers only
  text.startswith('this')  # return boolean - false because t is lowercase
  text.startswith('This')  # return boolean - true because T is uppercase
  text.endswith('text')  # return boolean
  
  ', '.join(text_list)  # join list to string
  text.split()  # convert string to array
  text.rjust(10)  # apply space to right and adding caracteres
  text.rjust(10, '-')  # apply space to right
  text.ljust(20)  # apply space to left
  text.ljust(20, '*')  # apply space to left and adding caracteres
  text.center(20)  # center text
  text.strip()  # remove whitespace - not overwrite variable, need create new variable
  text.rstrip()  # remove whitespace right side only
  text.lstrip()  # remove whitespace left side only
  text.strip('a')  # remove all occurrence
  text.replace('e', 'a')  # replace all occurrence e for a
  
  Payload = r"{&quot;id&quot;:34802,&quot;name&quot;:&quot;Módulo 1 - ORÇAMENTO&quot;,&quot;description&quot;:null,&quot;image_url&quot;:&quot;https://edools-3-production.s3.amazonaws.com/org-16999%2Fschool-18001%2Fe86c37077f77f04b79f8ab34a3a2829f%2Ftrilhas_1.png&quot;,&quot;created_at&quot;:&quot;2020-04-29T15:25:43.027Z&quot;,&quot;updated_at&quot;:&quot;2020-08-14T19:29:47.451Z&quot;,&quot;code&quot;:null,&quot;organization_owner_id&quot;:16999,&quot;duration&quot;:&quot;1:20&quot;,&quot;ready&quot;:true,&quot;linear_requirements&quot;:true,&quot;rating_min_progress&quot;:null,&quot;kind&quot;:&quot;online_course&quot;,&quot;extra_contents&quot;:[{&quot;id&quot;:138202,&quot;title&quot;:&quot;Aula 1 - Material de Apoio&quot;,&quot;order&quot;:0,&quot;resource_type&quot;:&quot;Course&quot;,&quot;resource_id&quot;:34802,&quot;media_id&quot;:1788383,&quot;available&quot;:true,&quot;downloadable&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:16:53.915Z&quot;,&quot;updated_at&quot;:&quot;2020-04-30T13:34:10.060Z&quot;,&quot;release_at&quot;:null,&quot;release_after&quot;:null,&quot;media&quot;:{&quot;id&quot;:1788383,&quot;title&quot;:&quot;MAM1A1&quot;,&quot;type&quot;:&quot;Document&quot;,&quot;host_key&quot;:&quot;659668104405&quot;,&quot;created_at&quot;:&quot;2020-04-30T13:09:23.072Z&quot;,&quot;updated_at&quot;:&quot;2020-06-05T13:52:09.733Z&quot;,&quot;text&quot;:null,&quot;video_id&quot;:null,&quot;s3_file_url&quot;:&quot;https://edools-3-production.s3.amazonaws.com/org-16999/school-18001/a36a3fc9ad20d845b927336749acb3f9/Material-de-apoio---M1A1.pdf&quot;,&quot;description&quot;:null,&quot;public&quot;:false,&quot;height&quot;:null,&quot;width&quot;:null,&quot;start_at&quot;:null,&quot;end_at&quot;:null,&quot;samba_player_key&quot;:null,&quot;status&quot;:&quot;ready&quot;,&quot;upload_token&quot;:null,&quot;message&quot;:null,&quot;host&quot;:null,&quot;duration&quot;:null,&quot;usage_count&quot;:2,&quot;folder&quot;:null,&quot;recipe_id&quot;:null,&quot;upload_count&quot;:0,&quot;second_host_key&quot;:null,&quot;second_host&quot;:null,&quot;second_host_status&quot;:null,&quot;organization_uuid&quot;:null,&quot;download_type?&quot;:true}},{&quot;id&quot;:138205,&quot;title&quot;:&quot;Aula 1 - Quem é Mirna Borges?&quot;,&quot;order&quot;:1,&quot;resource_type&quot;:&quot;Course&quot;,&quot;resource_id&quot;:34802,&quot;media_id&quot;:1788451,&quot;available&quot;:true,&quot;downloadable&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:17:44.275Z&quot;,&quot;updated_at&quot;:&quot;2020-04-30T13:34:21.067Z&quot;,&quot;release_at&quot;:null,&quot;release_after&quot;:null,&quot;media&quot;:{&quot;id&quot;:1788451,&quot;title&quot;:&quot;QuemMirnaBorges&quot;,&quot;type&quot;:&quot;Text&quot;,&quot;host_key&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:18:27.762Z&quot;,&quot;updated_at&quot;:&quot;2020-05-12T17:54:00.181Z&quot;,&quot;text&quot;:&quot;\u003cp\u003eEngenheira, Coach e Educadora Financeira. Criou o\u0026nbsp;\u003ca href=\&quot;https://www.youtube.com/channel/UCwLxXLLWEIJFHEeTMlYqHTA?sub_confirmation=1\&quot;\u003eEconomirna\u003c/a\u003e, canal do Youtube com mais de 1 milh\u0026atilde;o de inscritos.\u003c/p\u003e\n\n\u003cp\u003eSeu objetivo \u0026eacute; ajudar cada vez mais pessoas a realizarem seus sonhos atrav\u0026eacute;s da educa\u0026ccedil;\u0026atilde;o financeira. Tudo isto atrav\u0026eacute;s de conte\u0026uacute;dos simples e did\u0026aacute;ticos, que qualquer pessoa pode entender, mesmo que n\u0026atilde;o tenha conhecimento nenhum sobre educa\u0026ccedil;\u0026atilde;o financeira.\u003c/p\u003e\n&quot;,&quot;video_id&quot;:null,&quot;s3_file_url&quot;:null,&quot;description&quot;:null,&quot;public&quot;:false,&quot;height&quot;:null,&quot;width&quot;:null,&quot;start_at&quot;:null,&quot;end_at&quot;:null,&quot;samba_player_key&quot;:null,&quot;status&quot;:&quot;ready&quot;,&quot;upload_token&quot;:null,&quot;message&quot;:null,&quot;host&quot;:null,&quot;duration&quot;:null,&quot;usage_count&quot;:3,&quot;folder&quot;:null,&quot;recipe_id&quot;:null,&quot;upload_count&quot;:0,&quot;second_host_key&quot;:null,&quot;second_host&quot;:null,&quot;second_host_status&quot;:null,&quot;organization_uuid&quot;:null,&quot;download_type?&quot;:null}},{&quot;id&quot;:138206,&quot;title&quot;:&quot;Aula 2 - Material de Apoio&quot;,&quot;order&quot;:2,&quot;resource_type&quot;:&quot;Course&quot;,&quot;resource_id&quot;:34802,&quot;media_id&quot;:1788387,&quot;available&quot;:true,&quot;downloadable&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:34:22.183Z&quot;,&quot;updated_at&quot;:&quot;2020-04-30T13:36:50.306Z&quot;,&quot;release_at&quot;:null,&quot;release_after&quot;:null,&quot;media&quot;:{&quot;id&quot;:1788387,&quot;title&quot;:&quot;MAM1A2&quot;,&quot;type&quot;:&quot;Document&quot;,&quot;host_key&quot;:&quot;659667640105&quot;,&quot;created_at&quot;:&quot;2020-04-30T13:09:49.732Z&quot;,&quot;updated_at&quot;:&quot;2020-06-05T13:53:30.909Z&quot;,&quot;text&quot;:null,&quot;video_id&quot;:null,&quot;s3_file_url&quot;:&quot;https://edools-3-production.s3.amazonaws.com/org-16999/school-18001/6dc0eaf09ba7f6d6cf180daaa75632c3/Material-de-apoio---M1A2.pdf&quot;,&quot;description&quot;:null,&quot;public&quot;:false,&quot;height&quot;:null,&quot;width&quot;:null,&quot;start_at&quot;:null,&quot;end_at&quot;:null,&quot;samba_player_key&quot;:null,&quot;status&quot;:&quot;ready&quot;,&quot;upload_token&quot;:null,&quot;message&quot;:null,&quot;host&quot;:null,&quot;duration&quot;:null,&quot;usage_count&quot;:2,&quot;folder&quot;:null,&quot;recipe_id&quot;:null,&quot;upload_count&quot;:0,&quot;second_host_key&quot;:null,&quot;second_host&quot;:null,&quot;second_host_status&quot;:null,&quot;organization_uuid&quot;:null,&quot;download_type?&quot;:true}},{&quot;id&quot;:138207,&quot;title&quot;:&quot;Aula 2 - Quem é Nathaly Dias?&quot;,&quot;order&quot;:3,&quot;resource_type&quot;:&quot;Course&quot;,&quot;resource_id&quot;:34802,&quot;media_id&quot;:1788458,&quot;available&quot;:true,&quot;downloadable&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:34:33.418Z&quot;,&quot;updated_at&quot;:&quot;2020-04-30T13:36:58.192Z&quot;,&quot;release_at&quot;:null,&quot;release_after&quot;:null,&quot;media&quot;:{&quot;id&quot;:1788458,&quot;title&quot;:&quot;QuemNathalyDias&quot;,&quot;type&quot;:&quot;Text&quot;,&quot;host_key&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:19:27.715Z&quot;,&quot;updated_at&quot;:&quot;2020-05-01T00:09:31.988Z&quot;,&quot;text&quot;:&quot;\u003cp\u003eNathaly Dias se descreve como lifestyle do baixa renda e blogueira da vida real. A jovem de 27 anos, moradora do Morro do Banco, no Rio de Janeiro, \u0026eacute; mais conhecida como\u0026nbsp;\u003ca href=\&quot;https://www.youtube.com/channel/UC-urAro4mpWC_fhYw5B6vVw/featured\&quot;\u003eBlogueira de Baixa Renda\u003c/a\u003e. Ela fala muito da sua vida, seu cotidiano, mas \u0026eacute; especialista em falar com todas as pessoas e dar dicas realistas de como aproveitar a vida gastando pouco.\u003c/p\u003e\n\n\u003cp\u003eCom perfil mais minimalista, Nathaly fala sobre o essencial no cotidiano. Ficou muito conhecida com sua s\u0026eacute;rie de 21 v\u0026iacute;deos sobre como viver com menos e ter um estilo de vida mais leve.\u003c/p\u003e\n&quot;,&quot;video_id&quot;:null,&quot;s3_file_url&quot;:null,&quot;description&quot;:null,&quot;public&quot;:false,&quot;height&quot;:null,&quot;width&quot;:null,&quot;start_at&quot;:null,&quot;end_at&quot;:null,&quot;samba_player_key&quot;:null,&quot;status&quot;:&quot;ready&quot;,&quot;upload_token&quot;:null,&quot;message&quot;:null,&quot;host&quot;:null,&quot;duration&quot;:null,&quot;usage_count&quot;:2,&quot;folder&quot;:null,&quot;recipe_id&quot;:null,&quot;upload_count&quot;:0,&quot;second_host_key&quot;:null,&quot;second_host&quot;:null,&quot;second_host_status&quot;:null,&quot;organization_uuid&quot;:null,&quot;download_type?&quot;:null}},{&quot;id&quot;:138208,&quot;title&quot;:&quot;Aula 3 - Material de Apoio&quot;,&quot;order&quot;:4,&quot;resource_type&quot;:&quot;Course&quot;,&quot;resource_id&quot;:34802,&quot;media_id&quot;:1788391,&quot;available&quot;:true,&quot;downloadable&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:34:51.186Z&quot;,&quot;updated_at&quot;:&quot;2020-04-30T13:37:18.439Z&quot;,&quot;release_at&quot;:null,&quot;release_after&quot;:null,&quot;media&quot;:{&quot;id&quot;:1788391,&quot;title&quot;:&quot;MAM1A3&quot;,&quot;type&quot;:&quot;Document&quot;,&quot;host_key&quot;:&quot;659668953794&quot;,&quot;created_at&quot;:&quot;2020-04-30T13:10:11.610Z&quot;,&quot;updated_at&quot;:&quot;2020-06-05T13:53:57.092Z&quot;,&quot;text&quot;:null,&quot;video_id&quot;:null,&quot;s3_file_url&quot;:&quot;https://edools-3-production.s3.amazonaws.com/org-16999/school-18001/f3c3d7c6b169deb2a4a5c8f8a2691430/Material-de-apoio---M1A3.pdf&quot;,&quot;description&quot;:null,&quot;public&quot;:false,&quot;height&quot;:null,&quot;width&quot;:null,&quot;start_at&quot;:null,&quot;end_at&quot;:null,&quot;samba_player_key&quot;:null,&quot;status&quot;:&quot;ready&quot;,&quot;upload_token&quot;:null,&quot;message&quot;:null,&quot;host&quot;:null,&quot;duration&quot;:null,&quot;usage_count&quot;:2,&quot;folder&quot;:null,&quot;recipe_id&quot;:null,&quot;upload_count&quot;:0,&quot;second_host_key&quot;:null,&quot;second_host&quot;:null,&quot;second_host_status&quot;:null,&quot;organization_uuid&quot;:null,&quot;download_type?&quot;:true}},{&quot;id&quot;:138209,&quot;title&quot;:&quot;Aula 3 - Quem é Patrícia Lages?&quot;,&quot;order&quot;:5,&quot;resource_type&quot;:&quot;Course&quot;,&quot;resource_id&quot;:34802,&quot;media_id&quot;:1788462,&quot;available&quot;:true,&quot;downloadable&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:35:01.549Z&quot;,&quot;updated_at&quot;:&quot;2020-04-30T13:37:23.818Z&quot;,&quot;release_at&quot;:null,&quot;release_after&quot;:null,&quot;media&quot;:{&quot;id&quot;:1788462,&quot;title&quot;:&quot;QuemPatriciaLages&quot;,&quot;type&quot;:&quot;Text&quot;,&quot;host_key&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:20:06.966Z&quot;,&quot;updated_at&quot;:&quot;2020-05-12T17:54:34.647Z&quot;,&quot;text&quot;:&quot;\u003cp\u003eComo ela pr\u0026oacute;pria se define,\u0026nbsp;\u003ca href=\&quot;https://www.youtube.com/channel/UCQtLBzP4sE-YkJhr8Mtx_Vg/featured\&quot;\u003ePatricia Lages\u003c/a\u003e\u0026nbsp;\u0026eacute; paulistana, jornalista, casada e gosta de fazer mil coisas com muita organiza\u0026ccedil;\u0026atilde;o.\u003c/p\u003e\n\n\u003cp\u003eEla j\u0026aacute; lan\u0026ccedil;ou 5 livros, todos sobre finan\u0026ccedil;as pessoais e empreendedorismo feminino. Seu best-seller \u0026eacute; o Bolsa Blindada. Patricia \u0026eacute; focada em educa\u0026ccedil;\u0026atilde;o financeira e empreendedorismo.\u003c/p\u003e\n\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n&quot;,&quot;video_id&quot;:null,&quot;s3_file_url&quot;:null,&quot;description&quot;:null,&quot;public&quot;:false,&quot;height&quot;:null,&quot;width&quot;:null,&quot;start_at&quot;:null,&quot;end_at&quot;:null,&quot;samba_player_key&quot;:null,&quot;status&quot;:&quot;ready&quot;,&quot;upload_token&quot;:null,&quot;message&quot;:null,&quot;host&quot;:null,&quot;duration&quot;:null,&quot;usage_count&quot;:3,&quot;folder&quot;:null,&quot;recipe_id&quot;:null,&quot;upload_count&quot;:0,&quot;second_host_key&quot;:null,&quot;second_host&quot;:null,&quot;second_host_status&quot;:null,&quot;organization_uuid&quot;:null,&quot;download_type?&quot;:null}},{&quot;id&quot;:138210,&quot;title&quot;:&quot;Aula 4 - Material de Apoio&quot;,&quot;order&quot;:6,&quot;resource_type&quot;:&quot;Course&quot;,&quot;resource_id&quot;:34802,&quot;media_id&quot;:1788394,&quot;available&quot;:true,&quot;downloadable&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:35:21.256Z&quot;,&quot;updated_at&quot;:&quot;2020-04-30T13:37:56.672Z&quot;,&quot;release_at&quot;:null,&quot;release_after&quot;:null,&quot;media&quot;:{&quot;id&quot;:1788394,&quot;title&quot;:&quot;MAM1A4&quot;,&quot;type&quot;:&quot;Document&quot;,&quot;host_key&quot;:&quot;659668270669&quot;,&quot;created_at&quot;:&quot;2020-04-30T13:10:33.258Z&quot;,&quot;updated_at&quot;:&quot;2020-06-05T13:54:20.149Z&quot;,&quot;text&quot;:null,&quot;video_id&quot;:null,&quot;s3_file_url&quot;:&quot;https://edools-3-production.s3.amazonaws.com/org-16999/school-18001/09c90bd66e93830fbf05b1b8a6cf9750/Material-de-apoio---M1A4.pdf&quot;,&quot;description&quot;:null,&quot;public&quot;:false,&quot;height&quot;:null,&quot;width&quot;:null,&quot;start_at&quot;:null,&quot;end_at&quot;:null,&quot;samba_player_key&quot;:null,&quot;status&quot;:&quot;ready&quot;,&quot;upload_token&quot;:null,&quot;message&quot;:null,&quot;host&quot;:null,&quot;duration&quot;:null,&quot;usage_count&quot;:2,&quot;folder&quot;:null,&quot;recipe_id&quot;:null,&quot;upload_count&quot;:0,&quot;second_host_key&quot;:null,&quot;second_host&quot;:null,&quot;second_host_status&quot;:null,&quot;organization_uuid&quot;:null,&quot;download_type?&quot;:true}},{&quot;id&quot;:138211,&quot;title&quot;:&quot;Aula 4 - Quem é Vitor Coff Del Rey&quot;,&quot;order&quot;:7,&quot;resource_type&quot;:&quot;Course&quot;,&quot;resource_id&quot;:34802,&quot;media_id&quot;:1788469,&quot;available&quot;:true,&quot;downloadable&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:35:47.545Z&quot;,&quot;updated_at&quot;:&quot;2020-04-30T13:38:13.291Z&quot;,&quot;release_at&quot;:null,&quot;release_after&quot;:null,&quot;media&quot;:{&quot;id&quot;:1788469,&quot;title&quot;:&quot;QuemVitorCoffDelRey&quot;,&quot;type&quot;:&quot;Text&quot;,&quot;host_key&quot;:null,&quot;created_at&quot;:&quot;2020-04-30T13:21:18.753Z&quot;,&quot;updated_at&quot;:&quot;2020-04-30T18:31:07.132Z&quot;,&quot;text&quot;:&quot;\u003cp\u003eV\u0026iacute;tor Coff Del Rey \u0026eacute; cientista Social, formado pela Funda\u0026ccedil;\u0026atilde;o Get\u0026uacute;lio Vargas, mestrando em Administra\u0026ccedil;\u0026atilde;o P\u0026uacute;blica pela FGV, Head da\u0026nbsp;\u003ca href=\&quot;https://www.facebook.com/groups/3724530880984537/\&quot;\u003ePonte Para Pretxs\u003c/a\u003e, CEO do primeiro aplicativo voltado ao afroempreendedorismo do mundo, a saber: Kilombu.\u003c/p\u003e\n\n\u003cp\u003eMilitante do Movimento negro, Vitor instru\u0026iacute; jovens na \u0026aacute;rea de empregabilidade e empreendedorismo social, com um foco em afroempreendedorismo e novas metodologias/tecnologias.\u003c/p\u003e\n&quot;,&quot;video_id&quot;:null,&quot;s3_file_url&quot;:null,&quot;description&quot;:null,&quot;public&quot;:false,&quot;height&quot;:null,&quot;width&quot;:null,&quot;start_at&quot;:null,&quot;end_at&quot;:null,&quot;samba_player_key&quot;:null,&quot;status&quot;:&quot;ready&quot;,&quot;upload_token&quot;:null,&quot;message&quot;:null,&quot;host&quot;:null,&quot;duration&quot;:null,&quot;usage_count&quot;:2,&quot;folder&quot;:null,&quot;recipe_id&quot;:null,&quot;upload_count&quot;:0,&quot;second_host_key&quot;:null,&quot;second_host&quot;:null,&quot;second_host_status&quot;:null,&quot;organization_uuid&quot;:null,&quot;download_type?&quot;:null}}]}"
  payloadArray = Payload.split(',')
  print(payloadArray[0])