Ahmed Obaid blog | Tag: Python String




strings

Python String

by Ahmed Obaid on 18-12-2022

​Strings are among the most common data types in Python. We can …


words: 423 | reading time: 4 minute


2871 0

strings

Concatenation of Strings in Python

by Ahmed Obaid on 20-12-2022

​We call the merging of strings together concatenation or concatenation. Python offers …


words: 557 | reading time: 6 minute


3496 0

strings

Index and slice Strings in Python

by Ahmed Obaid on 21-12-2022

​A string in Python is a sequence of one or more characters …


words: 1023 | reading time: 10 minute


3968 0

Python String strip() Method

by Ahmed Obaid on 23-12-2022

​strip() method returns a copy of the string with characters or whitespace …


words: 415 | reading time: 4 minute


2286 0

Python String join() Method

by Ahmed Obaid on 25-12-2022

​The join() function is a Python built-in function used to join elements …


words: 243 | reading time: 2 minute


2924 0

python String capitalize() Method

by Ahmed Obaid on 27-12-2022

​The capitalize() function returns a new copy of the original string and …


words: 126 | reading time: 1 minute


2180 0

python String upper() Method

by Ahmed Obaid on 28-12-2022

​The upper() function converts all lowercase letters in a string to uppercase …


words: 185 | reading time: 2 minute


2171 0

python String lower() Method

by Ahmed Obaid on 28-12-2022

​The lower() function is a built-in function that is mainly used to …


words: 200 | reading time: 2 minute


2018 0

Python String swapcase() Method

by Ahmed Obaid on 28-12-2022

​The swapcase() function converts all uppercase letters to lowercase and vice versa. …


words: 207 | reading time: 2 minute


1705 0

Python String title() Method

by Ahmed Obaid on 29-12-2022

​The title() function converts the first letter of each word to uppercase …


words: 253 | reading time: 3 minute


1811 0

Python String center() Method

by Ahmed Obaid on 29-12-2022

​The center() function creates and returns a new string with the specified …


words: 383 | reading time: 4 minute


1787 0

Python String expandtabs() Method

by Ahmed Obaid on 4-1-2023

​The expandtabs() function returns a new string with the "\t" tabs replaced …


words: 262 | reading time: 3 minute


2238 0

Python String lstrip() Method

by Ahmed Obaid on 4-1-2023

The lstrip() function returns a copy of the string with the leading …


words: 172 | reading time: 2 minute


1771 0

strip() method in python

by Ahmed Obaid on 4-1-2023

​The strip() function returns a copy of the string with the characters …


words: 265 | reading time: 3 minute


2299 0

Python String rstrip() Method

by Ahmed Obaid on 13-1-2023

​The rstrip() function returns a copy of the string with the last …


words: 247 | reading time: 2 minute


1623 0

Python String ljust() Method

by Ahmed Obaid on 14-1-2023

​The ljust() function returns a new copy of the original string with …


words: 274 | reading time: 3 minute


1679 0

Python String rjust() Method

by Ahmed Obaid on 14-1-2023

​The rjust() function returns a new copy of the original string with …


words: 270 | reading time: 3 minute


1570 0

Python String istitle() Method

by Ahmed Obaid on 14-1-2023

​The istitle() function returns True if the string is a title. otherwise …


words: 220 | reading time: 2 minute


1671 2

strings

Python String Methods

by Ahmed Obaid on 15-1-2023

Python provides a lot of built-in functions for manipulating strings. String in …


words: 595 | reading time: 6 minute


2981 0

Python String replace() Method

by Ahmed Obaid on 16-1-2023

​The replace() function returns a new copy of the string in which …


words: 334 | reading time: 3 minute


2815 0

Python String maketrans() - translate() Methods

by Ahmed Obaid on 17-1-2023

​The maketrans() function returns a transposition table that transposes each character in …


words: 236 | reading time: 2 minute


1688 0

strings

String exchange functions in Python

by Ahmed Obaid on 18-1-2023

Python provides a lot of built-in functions for manipulating strings. String in …


words: 168 | reading time: 2 minute


2398 0

Python String format() Method

by Ahmed Obaid on 19-1-2023

​The format() function formats complex strings more efficiently. By placing one or …


words: 573 | reading time: 6 minute


2062 1

Python String split() Method

by Ahmed Obaid on 24-1-2023

​The split() function splits the string by the specified separator and returns …


words: 385 | reading time: 4 minute


2843 0

Python String splitlines() Method

by Ahmed Obaid on 24-1-2023

The splitlines() function splits the string based on line breaks and returns …


words: 332 | reading time: 3 minute


2102 0

strings

String splitting functions in Python

by Ahmed Obaid on 26-1-2023

Python provides a lot of built-in functions for manipulating strings. String in …


words: 141 | reading time: 1 minute


1576 0

Python String startswith() Method

by Ahmed Obaid on 26-1-2023

​The startswith() function checks if a string starts with a prefix. If …


words: 361 | reading time: 4 minute


1969 0


العربيّة