Whilelab - Coding & Design Tutorials (@WhileLab) header
Whilelab - Coding & Design Tutorials (@WhileLab) profile picture

Educational YouTube channel about programming, mainly Python Free Python Tutorials 👉 https://teapawt.net/t.co/z6JhAcc7R6

Joined March 2018
Replying to @TreciaKS
a coincidence? I got confused for a second, until I realized you mean HTTP 200 Ok
1
9
Checking if a word is in a string You can use the ‘in’ built-in Python keyword to check if a string is part of another string
1
6
Getting the length of any string Python has a magical method called len() which can be used in any array/sequence and it will return the length of it, this works with strings too
1
5
Multiplying string by a number You can use the * operator to duplicate the string multiple times
1
4
Connecting two strings together Python allows you to concanate two strings to be one single string like this:
1
5
Getting multiple characters You specify from which letter to which letter using their index, for example to get the first 5 letters you will use it like this [0:6], note that the second number denotes the up to index, and not including that index, let’s see some examples
1
5
Reverse indexing You can also use this same way to read the values from the end of the string, -1 to get the last character, -2 to get the second last character and so on, it will look something like this.
1
4
Indexing You can get a subset of any given string (text) using the braces index. Considering the first letter in a string to be 0, you can get any single letter like this:
1
4
Storing a string in a variable How to create a string variable?
1
6
Everything You Need to Know About Python Strings 🧵 👇 #python #100daysofcoding #codenewbie
7
23
1
54