Automatically translated.View original post

🪄 Basic Python: Simple String Makeover with Method! 💖

Let's learn Basic Python Modification Strings! Although the String in Python is Immutable, we can easily create a new String from the original String makeover with the Built-in Methods available! ✨

Today, we offer two of the most popular methods used often:

1. Upper ():

• This method will change all letters in String to all UPPERCASE letters!

• Example: "Hello, World!." Upper () will get the result of "HELLO, WORLD!"

2. Lower ():

• This method will change all letters in String to lowercase!

• Example: "Hello, World!." Lower () will get the result of "hello, world!"

These two methods are very useful when we deal with textual information, such as alphabetizing letters before comparison or storage!

Try to use it to write code more easily and faster! Keep going. 🥰

# python # programmer # data # ai # learnonlemon8

2025/11/12 Edited to

... Read moreถ้าคุณกำลังเริ่มเรียน “คำสั่ง Python เบื้องต้น / python base” เรื่อง String เป็นหนึ่งในสิ่งที่เจอบ่อยมาก และสองเมธอดอย่าง `.upper()` กับ `.lower()` คือของที่ควรรู้ตั้งแต่แรก เพราะช่วย “ทำให้ข้อมูลเป็นมาตรฐาน” ก่อนเอาไปเทียบ/ค้นหา/จัดเก็บได้ง่ายขึ้น สิ่งที่มือใหม่มักงงคือ String ใน Python เป็น immutable (แก้ไขของเดิมไม่ได้) ดังนั้นเวลาเราเขียน `text.upper()` หรือ `text.lower()` จริง ๆ แล้ว Python จะ “สร้างสตริงใหม่” ให้เรา ไม่ได้เปลี่ยนค่าเดิมในตัวแปรอัตโนมัติ ตัวอย่างที่ชอบใช้จำง่าย ๆ: - `"Hello, World!".upper()` จะได้ `"HELLO, WORLD!"` - `"Hello, World!".lower()` จะได้ `"hello, world!"` ถ้าต้องการเก็บผลลัพธ์ไว้ใช้ต่อ ต้องกำหนดตัวแปรใหม่หรือทับตัวเดิม เช่น `text = text.lower()` ทริคที่ใช้งานจริง (เจอบ่อยมากในงานข้อมูล) 1) ทำให้เทียบข้อความได้โดยไม่สนตัวพิมพ์ใหญ่-เล็ก สมมติรับค่าจากผู้ใช้ว่าเขาพิมพ์ “YES”, “Yes”, “yes” ปนกัน เรามักแปลงให้เป็นรูปแบบเดียวก่อน: - ใช้ `answer = answer.lower()` แล้วค่อยเช็ก `if answer == "yes":` แบบนี้ลดบั๊กจากการเทียบสตริงผิดรูปแบบได้เยอะมาก 2) ใช้กับการค้นหา/เช็กคีย์เวิร์ด ถ้าอยากเช็กว่าข้อความมีคำว่า hello ไหม โดยไม่สนเคส: - แปลงทั้งข้อความเป็น lower ก่อน แล้วค่อยใช้ `in` เช่น “Hello, World!” ก็ยังหาเจอด้วยคำว่า `"hello"` 3) ระวังจุดเล็ก ๆ ที่มือใหม่พลาด - `.upper` กับ `.upper()` ไม่เหมือนกัน ต้องมีวงเล็บ `()` ถึงจะ “เรียกใช้งานเมธอด” - เมธอดพวกนี้จะไม่กระทบตัวอักษรที่ไม่ใช่ a-z เช่น ตัวเลข/สัญลักษณ์ จะอยู่เหมือนเดิม (เช่น comma หรือ ! ใน “Hello, World!”) สรุปคือ ถ้าคุณกำลังปูพื้นฐาน python base ให้คล่อง แนะนำให้ฝึกใช้ `.upper()` และ `.lower()` กับข้อความหลายแบบ แล้วลองเอาไปใช้กับงานง่าย ๆ เช่น รับอินพุตผู้ใช้/ทำความสะอาดข้อมูลก่อนเปรียบเทียบ รับรองว่าโค้ดจะอ่านง่ายขึ้นและพังน้อยลงครับ

Related posts

✨Easy Bible Study Method✨
Looking to get closer to God when you study? Try this easy study method and watch your relationship change with the Lord🕊️ #biblemethod #studying the bible #biblechallenge #biblehacks #biblejournalingideas
🤓That Nerdy Bible Girl🤓

🤓That Nerdy Bible Girl🤓

1927 likes

An open Bible with highlighted passages and a pink pen, overlaid with the text "Using the S.O.A.P Method to read Scripture." The image also shows a leopard print background and a spiral notebook.
A spiral notebook page with "Soap Method" written at the top, followed by "S= Scripture" and "Exodus 16-18." A Bible reading plan is visible on the adjacent page.
A spiral notebook page detailing the S.O.A.P method. It shows "S= Scripture" (Exodus 16-18) and "O= Observations" with bullet points about God's promises, rest, and using others.
Using the S.O.A.P Method to read Scripture
S= scripture 💕 write down the verses or chapters you are going to read O= observation 💕 what stuck out to while reading. Where did you see God at work? A= application 💕 how can you apply what you read to your life? P= prayer 💕 have a conversation with God #Lemon8 #bible #scripture
Olivia Coffey

Olivia Coffey

7304 likes

Unlock Rounder Glutes with this brazilian Method!
If you're struggling to grow your glutes or feel like your workouts aren't giving you the shape you want, it's time to try the Glute Kickback with ankle weights! This exercise is a go-to for Brazilian athletes because it directly targets and isolates the glutes, hitting every angle fo
Zara_Sanchi

Zara_Sanchi

1189 likes

The Cornell Method
There are 3 sections. The notes section, the Q section, and the summary section. Notes section - The place where you write down facts you know or read from a textbook. - Where you can write down what the teacher has written on the board, or what the teacher says. - Anything else you find imp
AliPond232

AliPond232

2812 likes

my study method for As in math🫶✨
I’ve heard so many people say there’s no good way to study for math courses, either you know the information or you don’t… that’s not true! I have used this method for all my math classes from algebra 1 up to calculus 3 and differential equations I go to ALL of my lectures and take detailed n
reagan

reagan

1477 likes

Study Method for A in anatomy and physiology
This is exactly how to get an A in anatomy & physiology! #anatomyandphysiology #study #studyinganatomy #physiology #anatomyandphysiologyhelp
Ollie | Anatomy & Physiology

Ollie | Anatomy & Physiology

2708 likes

A hand holds a pink budgeting binder with clear pockets containing various US dollar bills, illustrating the 50/30/20 method for financial management. The text overlay introduces the '50/30/20 METHOD SWIPE'.
A hand holds a large stack of US dollar bills, representing the '50% FOR NEEDS' category of the 50/30/20 budgeting rule. This portion covers essential expenses like rent, utilities, groceries, and transportation.
A hand holds a large stack of US dollar bills, representing the '30% FOR WANTS' category of the 50/30/20 budgeting rule. This portion covers non-essential expenses like dining out, entertainment, and hobbies.
Financial Goals Reached Using The 50/30/20 Method
The 50/30/20 rule is a simple budgeting method that helps you manage your income by dividing it into three main categories..This method provides an easy way to balance essential spending, enjoyment, and long-term financial goals. #Lemon8 #lemon8partner #personalfinance #spendingt
Lakenya Hale

Lakenya Hale

1259 likes

A title slide for "5-5-5 productivity tips for everyday life" by "teal days," featuring a modern interior with a dark blue sofa, a shelf, and an orange lamp. A "SWIPE FOR MORE" button is prominent.
An infographic explaining the "5-5-5 productivity for daily life" method. It details the 5-second rule for starting tasks, the 5-minute rule for managing cravings, and the 5-hour rule for big decisions, with illustrations of people.
An infographic titled "why does it work?" for the 5-5-5 productivity method. It outlines the benefits of the 5-second rule (urgency), 5-minute rule (impulse control), and 5-hour rule (logical analysis), with a woman illustration.
5-5-5 productivity method 🍋
This 5-5-5 approach leverages different time scales to address various cognitive and behavioral challenges, promoting better decision-making and self-control in everyday life. Personally, I like how the 5 second rule helps me when I’m struggling with starting. I shut off that fear for 5 seconds
teal.days

teal.days

1831 likes

A handwritten guide to the S.O.A.P. Bible Study Method. It explains S for Scripture, O for Observation, A for Application, and P for Prayer, detailing how to engage with text, reflect, apply, and pray.
The soap method 🧼
#soap&glory #soapmethod #christiangirl #christianlifestyle #christianity
Cami✝️💗

Cami✝️💗

783 likes

Try Elon Musk’s Time Management Method: Boost Your
Want to work smarter, not harder? Let’s take a page out of Elon Musk’s playbook! These simple, but powerful time management tips have helped him juggle multiple companies and still stay on top of his game. And guess what? They work for students like us too! Ready to Dominate Your Day Like E
StudyWithLiam

StudyWithLiam

126 likes

Paycheck Budget Method ✨
Budgeting money: how to budget for beginners using the paycheck budget method. Break down each paycheck into one or multiple pay periods and allocate each expense! Budgeting organization method and bill pay budget organization. #personalfinance #lemon8money
Andrea Davis

Andrea Davis

1747 likes

💒Using the S.O.A.P Method to bible study💒
S= scripture 🩷 write down the verses or chapters you are going to read O= observation 🩷 what stuck out to while reading. Where did you see God at work? A= application 🩷 how can you apply what you read to your life? P= prayer 🩷 have a conversation with God #biblestudy #bible #scripture
Nylla ᥫ᭡

Nylla ᥫ᭡

1491 likes

A light pink graphic with red hearts and stars, displaying the title "H.E.A.R Bible Study Method" in red text, with "@SHE.SEEKS.JESUS" at the bottom.
A light pink graphic with red hearts and stars, detailing the "H - Highlight" step of the Bible study method, instructing to highlight verses or words that stand out.
A light pink graphic with red hearts and stars, detailing the "E - Explain" step of the Bible study method, focusing on the context and author's message.
H.E.A.R Bible Study Method
H.E.A.R. is an acronym that stands for Highlight, Explain, Apply, and Respond. These are the four steps you will use each time you sit down to study God's Word. *H- Highlight: As you are reading, highlight verses, phrases or important words that stand out or speak to you. *E- Explain: Expla
She Seeks Jesus

She Seeks Jesus

963 likes

An overhead shot displays skincare products and a beauty device, illustrating a 'How to Effectively Use Retinol 3 Step Skincare Routine' using the 'sandwich method'. Products include a moisturizer, a retinol cream, and a beauty device, set against a light background with decorative items.
A hand holds a jar of moisturizer, labeled 'WATERMELON MOISTURE SOOTHING GEL CREAM'. The text explains 'Step 1: Apply a moisturizer (first layer)' after cleansing to create a buffer, minimizing direct contact between skin and retinol.
A hand holds a pink tube of 'GENTLE RETINOL CREAM'. The text describes 'step 2: Apply retinol', instructing to wait for the first moisturizer layer to settle, then apply a pea-sized amount of retinol, avoiding sensitive areas.
Sandwich Method 🥪How to use retinol effectively
💕Moisturizer helps with retinol because it minimizes the irritation and dryness often associated with retinol use. Retinol can disrupt the skin’s barrier, causing peeling, redness, or sensitivity, especially for beginners or those with dry skin. A moisturizer helps to restore hydration and protect
Mae🌷

Mae🌷

515 likes

how I got started learning Python 🐍💻👾
I’ve been learning Python this summer to prepare for my research lab and courses in the fall. Programming isn’t required for my major, so I’m taking the time to learn it alone. The biggest tip I can give is specific goals from the beginning! Speaking from experience, this will save a lot of time an
reagan

reagan

46 likes

A foil pan filled with seasoned snow crab legs, corn on the cob, mushrooms, and sausage, ready for a quick and easy dinner. The image has "Cook with me Dinner ideas" text overlay.
A foil pan containing raw snow crab legs, corn on the cob, mushrooms, and sausage, before seasoning and cooking. The image is labeled "BEFORE" and shows the initial arrangement of ingredients.
A foil pan filled with cooked snow crab legs, corn on the cob, sausage, mushrooms, boiled eggs, and potatoes, coated in a rich sauce. The image is labeled "AFTER", showcasing the finished dinner.
DINNER TIME! Quick & Easy Method: Snow Crab Legs
Ingredients: •Snow Crab Legs •Corn on Cob •Sausage •Boil Eggs •Mushrooms •Minced Garlic •Yellow Onion •Butter •Old Bay Seasoning •Orange Pepper •Garlic Powder •Onion Powder •Parsley •Potatoes(If U Like) (Feel Free to add more spice or seasonings to your liking.) Instructions: •Cl
SapphireBritty_B

SapphireBritty_B

1101 likes

Step-by-Step *Beginner* Friendly Bald Cap Method
#howto #wiginfluencer #stepbystep #baldcapmethod #shareyourthoughts ***************************** (POSTING PART 2 NEXT) Products Needed • Edge gel • Edgebrush • HD wig cap • Ebin melting spray • Blowdryer (on cool) • Brow razor • Foundation brush
ᴘʀᴀᴅᴀ🎀

ᴘʀᴀᴅᴀ🎀

3917 likes

F.A.S.T study method
Study Smarter, Not Harder: The F.A.S.T Method turns overwhelming coursework into achievable daily wins. These tips work because they are simple, direct to the point, and 100% doable. Any student can do this! Try this for a month and see how it goes. You can still have an academic comeback ❤️
teal.days

teal.days

323 likes

Pulled Pork using the Snake Method
Made this Iberico pork shoulder roast from @eat.campogrande, pulled pork style, on my Weber kettle using the charcoal snake method. No wrapping during the entire cook, but at the end, I wrapped it in Iberico pork lard to make it extra juicy for the next day when I was ready to dig in! Smoked for
TFTI BBQ

TFTI BBQ

1522 likes

A tablet screen displaying a learning management system dashboard with the overlay text "copy my STUDY ROUTINE," indicating a shared study method.
A detailed study method outlining how long to study, break durations, and the initial steps of a study session, including revising, learning, and testing oneself.
The continuation of a study method, detailing steps like putting information into context, reviewing, and disclaimers, along with note-taking tips for effective learning.
A Great Study Method!
My study method is just a mix up of tips I’ve came across over the years! You can also use ChatGPT to generate practice questions for you! BEFORE: create one document with all your notes and upload it to ChatGPT ASK: based on the document, can you generate (whatever amount of questions yo
Nia

Nia

375 likes

A spiral-bound notebook page titled 'Case Endings' details grammatical cases like Nominative, Accusative, Dative, Locative, Ablative, and Genitive, with their definitions and examples. The text 'Language Notes 101' is overlaid on the bottom, illustrating a method for organizing grammar notes.
Language Study Note Taking Method
If you’re new to language learning and want to know how to structure your notes, here’s a guide that I hope helps. Remember the best way will be YOUR way. You’ll find what that is over time. Now, the notes: I like to divide by three main categories: ✏️Grammar 📕Vocab 👓Phrases If yo
Study Seal

Study Seal

475 likes

Micro Locs Install Interlock Method
Here, I’ve done a Micro Loc install using the interlock method. Do you have Micro Locs? If so, what method did you use? Leave a comment below 👇🏾 #locs #locjourney #microlocs #microlocsinstallation #microlocsjourney #loctician #emervelbeauty #loctips #lovelylocsjourney #
$ A V V Y 💚

$ A V V Y 💚

1362 likes

Effective note-taking strategies: Cornell Method
BONUS TIPS: 📝 In the summary section: Write a brief summary of the main ideas Use your own words to reinforce understanding 🔄 Review your notes regularly: Cover the right column and try to answer the questions in the left This promotes active recall and helps identify areas for further
teal.days

teal.days

79 likes

Blow-Drying: Tension Method
This is the blow drying method that works best for ME, but it’s not the best blow dry method for every client! If your client has extremely tangled hair or dry/damaged ends, the round brush will not glide through the hair easily and may cause them pain so be mindful of this 😊 Texture Prep is
𝓐𝓳𝓪𝓷𝓮𝓮

𝓐𝓳𝓪𝓷𝓮𝓮

1396 likes

Budget Grocery Shopping Method
🚨 Stop Repeat Buying & Wasting Food ✅ fact: groceries have gotten really expensive ❎ fiction: you have to spend a ton of money when you go grocery shopping I’m someone who tends to repeat by a lot and food often goes to waste if I am over buying. Sometimes the best way to save money and
YT: TheBougieBlackGirls

YT: TheBougieBlackGirls

7428 likes

The 50/30/20 Budget Method 💰
Hi friends! 🍋 I’ve been trying the 50/30/20 Budge Method for a few months and I felt I had to share with you guys. If tou struggle with budge, saving money and you don’t have idea how to start, I would recommend trying this method! You can manage the percentage based on your income and l
Thamires Cottone | REALTOR

Thamires Cottone | REALTOR

2598 likes

Step-by-Step *Beginner* Friendly Bald Cap Method 2
#howto #wiginfluencer #stepbystep #baldcapmethod #shareyourthoughts ***************************** Products Needed • Edge gel • Edgebrush • HD wig cap • Ebin melting spray • Blowdryer (on cool) • Brow razor • Foundation brush
ᴘʀᴀᴅᴀ🎀

ᴘʀᴀᴅᴀ🎀

568 likes

ZipLoc Method 🌱
How To Use A ZipLoc To Germinate Seeds 🤔? Since Everyone Was Asking The Same Questions ❤️🫶🏽 #ziplocgermination #ziplocmethod #seedstarting #chefyasmyne #yasmynechanel
Chef YasmyneChanel 💕

Chef YasmyneChanel 💕

1814 likes

A smiling person with braided hair and glasses is shown against a bright blue sky. Overlay text reads "THE STORY OF HOW I MANIFESTED $2K IN THREE DAYS," with "MANIFESTED" in glowing blue. The Lemon8 logo and username @dreamsandthingz are at the bottom.
Have you heard of the 3x33 method? ✨👀
Hey, I’m Pertrice. 👋🏾 I’m a self-taught spiritualist, herbalist, and astrology enthusiast! I love learning and about 5 years ago I learned about this method. The 3x33 method is a type of manifestation technique that brings to you something quickly (usually in three days). I have used this metho
Dreamsandthingz

Dreamsandthingz

3664 likes

A study desk setup featuring a document highlighted with various colors, a tray of Sharpie S-note highlighters, a tablet, and a laptop. Text overlays read 'HIGHLIGHTER STUDY METHOD' and 'AS A JUNIOR PRE-MED WITH A 4.0 EVERY SEMESTER TAKING HIGHER LEVEL SCIENCES'.
Highlighter Study Method 📚
Choose Your Colors 🎨: Assign a specific color for different types of information. Here’s a color scheme that works well for me: Yellow: Main concepts and key points. Pink: Important dates, names, and terms. Blue: Definitions and detailed explanations. Green: Examples and case studies. Orange
Kenidy :)

Kenidy :)

269 likes

S.O.U.L Bible Study Method
The SOUL Bible study method, a devotional approach, involves Scripture, Observation, Understanding, and Living, helping you connect with God’s word and apply it to your life. Here’s a breakdown of the SOUL method: S- Scripture: Read the passage a few times, and then write it out in your journal
She Seeks Jesus

She Seeks Jesus

1097 likes

A young woman sits on a rock overlooking a mountainous landscape with houses, under a cloudy sky. The text overlay reads, 'Word Swap for A Growth Mindset,' promoting a positive outlook.
Word swap method for a growth mindset 📌
Hey, fam! Ready to hack your brain for a better mindset? Introducing ⚡️ Word Swapping ⚡️– a super simple trick to flip negative vibes into positive ones. Let’s dive in and see how swapping a few words can change your mindset! 📌 What’s Word Swapping? Word Swapping is about ditching negative
Alena Artemenko

Alena Artemenko

49 likes

An open Bible with the title 'Reading Scripture using the REAP Method' overlaid, and a white arrow pointing right. The Bible shows text from Numbers 21-22.
A spiral notebook page titled 'R.E.A.P.' with the 'Read' section outlined, including questions like 'What is happening in this passage?' The word 'Read' is overlaid.
An open Bible with a pink heart-shaped sticky note containing handwritten reflections on the passage. The text 'Make notes' is overlaid on the image.
Reading Scripture using the REAP Method
You all enjoyed the post about the SOAP method so I thought we tried a different method today. READ Read and reread the passage with an open heart, asking the Holy Spirit to speak to you . EXAMINE Spend some time reflecting. APPLY Meditate on what God is saying to you and how it affects your
Olivia Coffey

Olivia Coffey

319 likes

Effective Note Strategies: Outline Method
Here are three cases where the Outline Method is particularly effective: 📚 Literature analysis: Ideal for breaking down complex narratives Main topics can be themes or chapters Subtopics can include character development, plot points, and literary devices 🏛️ History lectures: Excell
teal.days

teal.days

54 likes

Follow This Method!
Never run out of Green onions Again!! 1. ⭐️ Take the root section place it in 1/2 inch of water 2 . 🌟 Once the shoot is about 2 inches plant it in soil 3. 💫 Water & place indoors 4. 🧅 Cut the shoots as needed for cooking #gardening #garden #DIY #cooking #fyp
Plant Trappin Apothecary

Plant Trappin Apothecary

327 likes

Scandinavian Sleep Method 🛌
The Scandinavian Sleep Method is relationship saving!!!! 🛌😮‍💨 when we got married, we struggled to sleep comfortably. My husband’s grandparents lived in Norway for a few years, and they kept doing this.. so we tried it! We’ve never turned back 😂 Instead of two duvets, my husband uses the quilt (he
Shannon Sweeney

Shannon Sweeney

1344 likes

A handwritten notebook page titled 'BIBLE STUDY TIP:' demonstrating the SOAP method. It features two entries: one based on Colossians 4:2 about prayer and thankfulness, and another on Jeremiah 29:12 about God listening to prayers.
A handwritten notebook page illustrating the SOAP method. It features Hebrews 5:14, with an observation about gaining discernment through God's word, an application to study fervently, and a prayer for focus and heightened discernment.
A handwritten notebook page demonstrating the SOAP method. It includes Matthew 6:33 and 1 Samuel 16:7, with an observation about God blessing those who seek Him, an application to put God first, and a prayer for spiritual presence.
✨ The SOAP method for studying the Bible ✨
This is one of the easiest methods I’ve found for studying the Bible and finding ways to apply scriptures to your every day life. S - Scripture: write whatever scripture it is that you’re reading O - Observation: write what the scripture means to you A - Application: how you can apply the s
Yamilexa

Yamilexa

819 likes

A flat lay shows a laptop displaying a video, an open planner with a pen, and a tablet, on a white desk. Overlay text reads 'my 3-3-3 method for time management' and 'SWIPE'.
A digital slide titled 'Time management' introduces the 3-3-3 method for efficiency and productivity, asking if the viewer struggles with time management.
A digital slide titled '3 important tasks' explains focusing peak energy hours on three main tasks to maximize efficiency and achieve goals.
My 3-3-3 Method for Time Management 💻
I wanted to share my best time-management tip, since I implemented it a couple of years ago, and it is the best way to manage a lot of work or projects on your plate. I’ve been using the 3-3-3 method for a couple of years now when it comes to daily time management. So swipe through ➡️ to learn h
mindofieva

mindofieva

397 likes

A woman in a gym takes a mirror selfie, with text overlayed stating 'YOUR GLUTE WORKOUT SHOULD INCLUDE...' and a note to 'pick one of each' exercise category for glute gains.
A woman demonstrates hip thrusts on a glute machine, illustrating 'isolation movements' like hip thrusts and cable kickbacks for a glute workout.
A woman performs single-leg Romanian Deadlifts (RDLs) with dumbbells, demonstrating 'single leg movements' such as RDLs, split squats, and lunges for glute training.
USE THIS METHOD FOR ROUNDER GLUTES!!
here is how to structure a glute workout that helps you get rounder glutes. Your glute workout should include at least ONE of the workouts in each category. 1) isolation movements: cable kickbacks and hip thrusts 2) single leg movements: lunges, split squats, RDLS 3) compound movements: squa
Denise Hamdan 🤍

Denise Hamdan 🤍

140 likes

Creating a new tiny string of pearls plant
A while back I posted that I propagate string of pearls in water and people were shocked! It’s my preferred method because it’s so easy! Within a few weeks the cuttings were ready for soil! How do you like to propagate your string of pearls? . . . . #stringofpearls #variegatedstring
Gardenholic

Gardenholic

784 likes

See more