Filter
Exclude
Time range
-
Near
πŸ”₯ Python String Methods Cheat Sheet Python provides many built-in methods to manipulate strings easily. βœ… Common String Methods Method - lower() Description - Converts to lowercase Example - "HELLO".lower() β†’ 'hello' ----------------------------------------------- Method - upper() Description - Converts to uppercase Example - "hello".upper() β†’ 'HELLO' ----------------------------------------------- Method - capitalize() Description - Capitalizes first letter Example - "hello world".capitalize() β†’ 'Hello world' ----------------------------------------------- Method - title() Description - Capitalizes first letter of every word Example - "hello world".title() β†’ 'Hello World' ----------------------------------------------- Method - strip() Description - Removes whitespace from both sides Example - " hello ".strip() β†’ 'hello' ----------------------------------------------- Method - replace(old, new) Description - Replaces substring Example - "hello".replace("l", "w") β†’ 'hewwo' ----------------------------------------------- Method - split(separator) Description - Splits string into list Example - "hello world".split(" ") β†’ ['hello', 'world'] ----------------------------------------------- Method - join(iterable) Description - Joins list into string Example - " ".join(['hello', 'world']) β†’ 'hello world' ----------------------------------------------- Method - startswith(sub) Description - Checks if string starts with substring Example - "hello".startswith("he") β†’ True ----------------------------------------------- Method - endswith(sub) Description - Checks if string ends with substring Example - "hello".endswith("lo") β†’ True ----------------------------------------------- Method - find(sub) Description - Returns index of substring (if found) Example - "hello".find("e") β†’ 1 ----------------------------------------------- Method - count(sub) Description - Counts occurrences of substring Example - "hello".count("l") β†’ 2 ----------------------------------------------- Method - isalpha() Description - Checks if all characters are alphabets Example - "hello".isalpha() β†’ True ----------------------------------------------- Method - isdigit() Description - Checks if all characters are digits Example - "123".isdigit() β†’ True ----------------------------------------------- Method - isalnum() Description - Checks if all characters are alphanumeric Example - "hello123".isalnum() β†’ True ----------------------------------------------- Method - islower() Description - Checks if all characters are lowercase Example - "hello".islower() β†’ True ----------------------------------------------- Method - isupper() Description - Checks if all characters are uppercase Example - "HELLO".isupper() β†’ True ----------------------------------------------- 🎯 Bonus Methods Method - zfill(width) Fills string with zeros from the left -----------------------------------------------' Method - swapcase() Swaps uppercase to lowercase and vice versa ----------------------------------------------- Method - rjust(width) Right-align string with spaces ----------------------------------------------- Method - ljust(width) Left-align string with spaces ----------------------------------------------- #Python #PythonProgramming #PythonDeveloper #PythonTutorial #LearnPython #PythonCoding #PythonCourse #PythonForBeginners #PythonScripts #PythonProjects #PythonTips #PythonTricks #PythonFullCourse #PythonAutomation #PythonWebDevelopment #PythonBackend #PythonAPIs #PythonStringMethods #PythonOOP #PythonLibraries #PythonWithAI #PythonChatGPT #PythonNextjs #PythonMachineLearning #PythonDjango #PythonFlask #PythonAutomationScripts #PythonAIProjects #PythonInterviewQuestions #PythonIn60Seconds #PythonShorts #PythonTipsAndTricks #PythonCodingChallenge #PythonForBeginners #PythonFromScratch #PythonBasicToAdvanced #PythonStepByStep #PythonInHindi #PythonCodingJourney
36
12
58
2,030
πŸš€ Excited to kick off my 100-day #PythonCodingChallenge today! πŸ’»πŸ Ready to level up my coding skills, explore new projects, and build something amazing. Let the coding marathon begin! πŸŽ‰ #100DaysOfCode #Python #CodingCommunity
2
6
239
20 Sep 2022
DAY 30 of #100daysofcode since yesterday I didn't code. I really felt sad about that...Today I have just revised string concepts #python #pythonprogramming #pythoncode #pythoncodingchallenge #consistency
1
5
20 Oct 2021
#day 4⃣3⃣ #100daysOfCodingChallenge #pythonCodingChallenge #React #dev #programmer #developer #javaScript #python #django #webDevelopment #FrontEndDevelopment #shuvro_75 build a delete function and trying to show pdf file on Django template but did not fix it. I will fix it soon
1
3
19 Oct 2021
#day 4⃣1⃣ - 4⃣2⃣ #100daysOfCodingChallenge #pythonCodingChallenge #React #dev #programmer #developer #javaScript #python #django #webDevelopment #FrontEndDevelopment #shuvro_75 I build a web application for my assignment project. It's a React Js project. I work so hard.
3
2
17 Oct 2021
#day 3⃣9⃣-4⃣0⃣ #100daysOfCodingChallenge #pythonCodingChallenge #React #dev #programmer #developer #javaScript #python #django #webDevelopment #FrontEndDevelopment #shuvro_75 Today I build a web application using React. - React Bootstrap - Firebase Authentication - Private Route
1
4
15 Oct 2021
#day 3⃣8⃣ #100daysOfCodingChallenge #pythonCodingChallenge #React #dev #programmer #developer #javaScript #python #django #webDevelopment #FrontEndDevelopment #shuvro_75 practice day of React βœ… React Hook βœ… React Context API βœ… React Private Route
1
3
15 Oct 2021
#day 3⃣7️⃣ #100daysOfCodingChallenge #pythonCodingChallenge #React #dev #programmer #developer #javaScript #python #django #webDevelopment #FrontEndDevelopment #shuvro_75 user authentication using firebase. ➑️ github, google signin ➑️ createUser, updateProfile, reset pass,
1
2
13 Oct 2021
#day 3⃣5⃣ #100daysOfCodingChallenge #pythonCodingChallenge #React #dev #programmer #developer #javaScript #python #django #webDevelopment #FrontEndDevelopment #shuvro_75 Successfully deploy a Django project on server & uploaded text & image from admin panel. πŸ˜€πŸ˜€πŸ˜€
1
1
2
13 Oct 2021
#day 3⃣4⃣ #100daysOfCodingChallenge #pythonCodingChallenge #React #dev #programmer #developer #javaScript #python #django #webDevelopment #FrontEndDevelopment #shuvro_75 Finally, I have done the user dashboard functionality, the user can update their own info and profile picture
1
2
11 Oct 2021
#day 3⃣2⃣#100daysOfCodingChallenge #React #HTML #CSS #bootstrap #javaScript #webDevelopment #FrontEndDevelopment #pythonCodingChallenge #django #shuvro_75 I made a function for the user dashboard page. This page contains GET and POST methods and updated 3 model data.
2
1
10 Oct 2021
#100daysOfCodingChallenge #React #HTML #CSS #bootstrap #javaScript #webDevelopment #FrontEndDevelopment #day3⃣0⃣#shuvro_75 #pythonCodingChallenge #django Database design for my bookshelf management project. It's a simple python Django project.
1
3
6 Oct 2021
#100daysOfCodingChallenge #pythonCodingChallenge #React #HTML #CSS #bootstrap #javaScript #webDevelopment #FrontEndDevelopment #devCommunity #day27 #shuvro_75 #python #django Today I learned more about Material UI . Icons, Button, theme, custom theme, custom css, font and more
1
2
2 Oct 2021
#100daysOfCodingChallenge #pythonCodingChallenge #django #React #html #css #bootstrap #javascript #webDevelopment #day22 #shuvro_75 β˜‘οΈDjango user authentication system is a very powerful system. It saves user passwords in the hash algorithm. β˜‘οΈ I completed signup login system
2