Skip to content

Python Journey

My Coding Blog

Menu
  • Links
Menu

Tag: strings

Python>>Strings: Indexing and Slicing

Posted on August 23, 2022August 24, 2022 by coden00b

I will be showing more examples of indexing and slicing as a form of my practice to familiarize this. From the previous lesson/posts, the syntax for slicing as follows: string[start : end : step] Example1: (Indexing and Slicing in Strings) W r i t e C o d e O n l i n e…

Read more

Python>>Data Type:Strings

Posted on August 23, 2022 by coden00b

Strings are text type and are sequences of character data. It is represented by quotation marks, either single or double quotes. Example: “Hello” ‘What is your name?’ >>> “Hello” ‘Hello’ >>> x = ‘What is your name?’ >>> print (x) What is your name? >>> Some key notes: 1.Escape sequences in strings = use backslash…

Read more

Recent Posts

  • The Zen of Python
  • Python>>String Interpolation and Formatting
  • Python>>String Methods
  • Python>>String Concatenation
  • Python>>Strings: Indexing and Slicing

Recent Comments

No comments to show.

Archives

  • January 2023
  • August 2022

Categories

  • Blog
  • Data Types