Automatically translated.View original post

Code shortened immediately with List

Code shortened immediately with List

📦 List is to store multiple values in one variable.

🧠 fits a set of information, such as a list, score, or product.

✂️ reduces the creation of multiple variables, immediately shortening the code.

🔢 The data in the list is in order. It can be accessed by location.

🔄 can add, delete or modify data throughout.

🎯 easier to manage large amounts of data.

🚀 Make the code look tidier and easier to read.

📚 is an important basis before learning about other data structures.

Summary; 📌 List allows easy management of multi-value data, short code and practical.

Next Episode EP8: Get More Sensitive With Dictionary

# Learn code# Pythonprogramming # High school kids # Fluke teacher teaches technology # Leisure activities

5/4 Edited to

... Read moreจากประสบการณ์การเรียนและสอน Python ผมพบว่า List เป็นเครื่องมือแรกที่ทำให้การเขียนโค้ดง่ายและเร็วขึ้นมาก เพราะเราสามารถเก็บข้อมูลหลายค่าไว้ในที่เดียว เช่น รายชื่อนักเรียนหรือคะแนนสอบ ซึ่งช่วยลดการสร้างตัวแปรหลายตัวและทำให้โค้ดสั้นลงทันที ตัวอย่างหนึ่งที่ผมชอบใช้คือการเพิ่มข้อมูลใหม่เข้าไปใน List ด้วยเมธอด append() หรือการลบข้อมูลด้วย remove() ที่ทำได้สะดวกมาก โดยที่ไม่ต้องเขียนโค้ดยาวๆ จัดการข้อมูลจำนวนมากก็ยังทำได้อย่างเป็นระเบียบ นอกจากนี้ การเข้าถึงข้อมูลใน List ด้วย index ก็ง่ายและตรงไปตรงมา เริ่มนับจาก 0 ทำให้เราสามารถดึงข้อมูลทีละชิ้นหรือเปลี่ยนแปลงค่าที่ตำแหน่งใดก็ได้ ทำให้โค้ดของเราดูสั้นและอ่านง่ายขึ้นด้วย ผมแนะนำให้ทุกคนลองเขียนโค้ดและเล่นกับ List เพื่อเรียนรู้วิธีจัดการข้อมูลอย่างมีประสิทธิภาพก่อนจะไปเรียนรู้โครงสร้างข้อมูลอื่นๆ เช่น Dictionary ซึ่งจะช่วยให้หาข้อมูลได้เร็วยิ่งขึ้น ตามที่ครูฟลุคได้แนะนำในตอนต่อไป สุดท้าย สำหรับคนที่เพิ่งเริ่มต้นเรียนรู้ Python การฝึกใช้ List จะช่วยสร้างความเข้าใจเกี่ยวกับการเก็บและจัดการข้อมูล ซึ่งเป็นพื้นฐานสำคัญในการพัฒนาทักษะการเขียนโปรแกรมอย่างมีประสิทธิภาพและยั่งยืน

Related posts

mental health reset check list
we all need one of these days!🥲 whether you’ve been feeling stressed, anxious, down or sad it’s so important to take a day for yourself and reset 🤍 here’s the checklist: 1) don’t immediately check your phone after waking up! 2) start your day with affirmations, journaling or a meditation
rachel

rachel

105 likes

A person stands outdoors at night with streetlights in the background. Overlay text reads "HOW TO CREATE A CUSTOM RINGTONE IN JUST A FEW STEPS!" indicating a tutorial.
A music player interface displays "NANA 7to8 soundtracks" and instructions to screen record audio from various sources, noting the clip should be under 30 seconds.
A phone screen shows a search bar with "ringtone" typed, displaying "RingtoneMaker" as an app result. Text instructs to download this or another ringtone maker app.
How change your ringtone to anything 😌
Hey guys!! I wanted to share this because I love hearing my phone ring or buzz and I’m sure some of you would love it too if you could choose exactly what it sounds like. I hope this tutorial is straightforward enough, but let me know if you have a question or anything! #phonecustomization #ph
jody🌙🧚🏽‍♀️🍃

jody🌙🧚🏽‍♀️🍃

1658 likes

THE CHEAT CODE TO GLUTE GROWTH✨ 4 Moves Only
Most girls have no idea they're only training half their glutes 🫡 The combo of shortened-position exercises (hip thrusts, kickbacks, reverse hypers) AND lengthened-position exercises (RDLs, step-ups, lunges) is what helps create that full, lifted shelf🍑 If you've been doing glute wor
Cassidy

Cassidy

595 likes

The BEST Habits to Add to Your Morning Routine ☕️
Do you have a good morning routine? If you’re looking to improve yours, try adding these habits to have a productive morning routine that works for you. Having a well established morning routine will help you start your day on a good note, and you will be more motivated, and have an easier ti
mindofieva

mindofieva

1169 likes

A person's feet in white sneakers and gray pants stand on green grass covered with red and orange autumn leaves. Overlay text reads "How to Fight Seasonal Depression 20 Tips for a Happier Season."
Text discusses understanding and managing seasonal depression (SAD), defining it as a type of depression linked to reduced sunlight and its prevalence in the U.S. and globally. Decorative autumn leaves and raindrops are visible.
Text explains why women are more likely to experience SAD, citing hormonal, genetic, and societal factors. An illustration shows three women, with text stating women are 2 times more likely to deal with symptoms than men.
20 Tips to Beat Seasonal Depression this Winter🌧️🌂❄️
As we shift into the colder, darker months, it’s easy to feel a change in our mood and energy levels. For many, seasonal depression, or Seasonal Affective Disorder (SAD), has already begun to set in. This isn’t just a matter of feeling down or less motivated—SAD is a legitimate mental health condit
Chalie_Baker

Chalie_Baker

191 likes

A split image showing a woman's glutes from the side, labeled 'Before' and 'After', illustrating glute growth. The text overlay reads 'How to structure your glute workouts For MAX growth'.
A woman performs a barbell hip thrust in a gym, with heavy weights on the bar. The image is labeled '1. Shortened Bridge/thrust'.
A woman in a gym performs a hip hinge exercise, bending forward with a barbell on the floor. The image is labeled '2. Lengthened Hip hinge'.
How to structure your glute workout for MAX growth
1. Shortened position bridge/thrust Start with an exercise that your glutes are in a shortened position during peak tension AND is a bridge/thrust pattern. This means hip thrusts, KAS glute bridges, etc. Perform with a barbell, smith machine, hip thrust machine or dumbbell. 2. Lengthened pos
Sophia Cepero

Sophia Cepero

246 likes

👟gym glute workout 🍑
the only workout structure u need to grow those GLUTES 🫵🏼 ( choose one from the lists of these amazing exercises!!! ). That being said - exercise selection is important but not without : prioritizing tempo, form, & pushing to failure. Go heavy but not too heavy that you’re compromising your
Charistina Van

Charistina Van

309 likes

Goldenheart _horserescue

Goldenheart _horserescue

187 likes

A bookshelf filled with various books, featuring an overlay text that reads "SPICY BOOKS ON MY TBR THAT I NEED TO READ ASAP" with two red chili pepper emojis.
The book "Crossed" by Emily McIntire, predicted 4/5 stars, described as Hunchback of Notre Dame inspired with a morally grey villain. It's placed on a wooden surface next to a lit candle.
The book "Twisted Hate" by Ana Huang, predicted 4/5 stars, highlighted as an enemies-to-lovers story. It's on a wooden surface with a lit candle and other items.
spicy books I need to read immediately!!!❤️‍🔥🌶️
One of my favorite book genres ever is dark romance and I have been adding so many to my tbr list that I cannot wait to read!! I love a good fantasy or thriller like the next girl but there is something about dark, twisted, spicy books that have me in a chokehold!!! These are just a few of the book
anika janelle🌿

anika janelle🌿

1634 likes

A cat wearing pink hair rollers and sunglasses, with text overlay "BE A TECH GIRL" and "Girlies Learn Coding!", promoting coding for girls.
A cat partially visible with text "GIRL POWER" and an explanation of why coding is important for girls, highlighting the gender gap in tech and future job opportunities.
A MacBook Air displaying the Codebay website's landing page, inviting users to "Set sail on your fun, easy coding journey!" with sign-in options, introducing the recommended coding platform.
Why should girls learn to code?
Hey girls, have you ever thought about learning coding like I did? #study #learning #studywithme 👩‍💻Coding is a way to self-expression, creativity, and fostering intellectual confidence. Even if you're not planning to pursue a career in tech, learning to code can help you develop a
Aura✨

Aura✨

365 likes

Study Like A Pro‼️ ⏰🤓📓
Here are some productivity glow-up hacks to help maximize your efficiency and achieve your goals: 🖊️ Set Clear Goals: SMART Goals: Make your goals Specific, Measurable, Achievable, Relevant, and Time-bound. Daily Priorities: List your top 3 priorities each day to focus your efforts. 📓 Creat
Joy 📚

Joy 📚

80 likes

Having hip tightness & pain? Do this basic exercises & stretches. Hip tightness and pain usually stem from a combination of prolonged sitting, muscle imbalances, or repetitive overuse. When hip flexors remain in a shortened position for too long, they adaptively shorten, pulling on the pe
Coach Angel Beck

Coach Angel Beck

139 likes

A back-to-school list for 8th grade with a 'Cutesy Vanilla Girly' theme, displayed over an image of a small, fluffy yellow duckling looking directly at the camera.
A checklist of actual school supplies for 8th grade, including binders, loose leaf paper, graph paper, dry erase markers, colored pencils, glue sticks, a ruler, a protractor, and pens.
A continuation of the school supplies checklist, featuring pastel highlighters, scissors, index cards, Post-it notes, notebooks, tissues, baby wipes, disinfectant wipes, a pencil pouch, calculator, tabs, and whiteout.
8th grade back to school list! Theme: Vanilla girl
Sorry if bad quality! This took so so long so please show support 💗. Please request grade and theme and I’ll start immediately! Love you pretties 💗💗💗 #schoolchecklist #backtoschoolvibesz #year8 #Lemon8Diary #school🥱
Narod Girichian

Narod Girichian

5 likes

A collection of various supplement bottles, including prenatal vitamins, fish oil, CoQ10, and herbal drops, displayed with text about shortening menstrual cycles.
A flat lay showing bottles of prenatal vitamins, a CoQ10 supplement, and a fish oil supplement, representing a daily vitamin regimen.
Two bottles of prenatal supplements, one for multivitamins and one for choline, illustrating specific components of a daily vitamin intake.
This Shortened My Cycle in Two Months…
I shortened my cycle in 60 days. Technically shorter than that but I consistently saw a change after two full menstrual cycles. I believe that there are 2 factors as to why this happened. Before we go any further let me start off with “EVERY WOMANS BODY IS DIFFERENT. Anything dealing with your b
🐞 LadyBug

🐞 LadyBug

244 likes

ABS like Hilary? I got you 🫡 join us in my prof! #workoutsforresults #coredefinition #bodyrecomposition
SASHA | yoga x strength coach

SASHA | yoga x strength coach

1 like

save this because this list changed everything about how I approach my day.
get outside within 30 minutes of waking up. morning light is the single most powerful signal you can give your nervous system that it is safe. it resets your entire cortisol rhythm for the whole day. eat within an hour of waking. your blood sugar crashed overnight and skipping breakfast sends yo
BreeAhna Swade

BreeAhna Swade

10 likes

Cozy girl coloring book! 🖍️
If you’re anything like me I’m sure you’ve fallen into coloring tok and seen all the beautiful coloring pages people are making on tiktok. I was immediately inspired and knew I had to try and omg I can’t put it down! I ran to Amazon and added the ohuhu markers and Coco Wyo coloring books st
Bri✨

Bri✨

83 likes

A woman with curly hair in athletic wear poses for a mirror selfie, showcasing her glutes. The image includes text stating, 'Every gym girl knows the best glute workout order is...'
Glute Workout 🍑
6-week Glute program is available on my app | Link in bio to join! 📲 This order is for a glute-focused workout 🍑 If you're training legs overall, squats are a must too! But for pure glute growth, think: 1. Hip thrusts heavy compound in a shortened position (glutes fully contracted at the
The_French_Fit

The_French_Fit

13 likes

PR Unlocked ! I can’t believe it 🥳
First off I’m so proud of my self because I just starting jogging/running last week and I already shortened my time by a minute Also I’m still not sure if I’m running or jogging. It def feels fast but idk if it’s fast like a run. Sorry I just had to share my win on this yellow 🍋 app 😍😘 #l
ᗷ ᖇ I 🩷✨

ᗷ ᖇ I 🩷✨

24 likes

you don’t have to do anything with the 365 buttons, but if you want to 👀 @Tamara girl I’m sorry I filmed this before I heard you wanted people to leave u alone 🥀 appreciate you for making buttons trendy bc I have so many button crafts I want to make 🫶🏻💕 not today though bc I really need to r
Megan Weller 🎨

Megan Weller 🎨

396 likes

save this because this one hit me harder than any symptom list ever did.
you snap at the people you love for no reason and immediately feel guilty. you know it is not them. you know it is not even really you. but you cannot stop it. you have zero patience for things that never used to bother you. your husband says something completely innocent and it lands like an at
BreeAhna Swade

BreeAhna Swade

5 likes

✨️🌞🐚SUMMER TBR LIST🐚🌞✨️
Here are a few of the books that caught my eye for the summertime 🌞🌊🐚📚 I found these while browsing the book aisle at walmart. I was immediately intrigued by the cover art & all of the vibrant colors. 😍 🐚 Just for the summer by Abby Jimenez - Justin & Emma's love life are both cu
yariibabyy

yariibabyy

356 likes

A split image showing a hand holding a latte with pink nails, and another hand near a laptop, with text "That girl Time Manage" and "save this guide" overlaid.
A page titled "1- Time Manage" with text about time-management hacks for busy people, accompanied by four small photos: a laptop, a person reading, pink headphones and makeup, and a latte.
A page titled "2- Important task" explaining the Eisenhower Matrix for prioritizing tasks, with four small photos showing pink-themed desk items, a computer, and a person writing in a notebook.
Time Management Hacks for Busy People 🧘🏼‍♀️🎧🎀✨
💌 Don’t forget to save this for later Follow for more like this 💖🪞🌸💫✨🫧 #healthygirl #healthygirlsummer #pilatesprincess #eveningroutine
Jasmine Hughes 🎀

Jasmine Hughes 🎀

42 likes

Bucket list cave experience 🤯
Cave details 👇🏼 When I first saw this cave online, I immediately added it to my bucket list. I mean, I actually keep a list of places I want to visit.. and this was physically added to it. It did NOT disappoint. 📍Phraya Nakhon cave - Khao Sam Roi Yot National Park, Thailand 🪨 You have two
Ash🚌🌎✈️

Ash🚌🌎✈️

132 likes

⭐️ medical abbreviations ⭐️
It is best nursing practice to avoid errors you should spell out words completely however this does not always happen. So if you come across abbreviations I want you to feel prepared. Here is a shortened list of the most common medication abbreviations and abbreviations used during charting. * p
NurseLifeRN

NurseLifeRN

17 likes

10-14 day adventure travel itinerary for Italy 🇮🇹
This is a sample itinerary that we loosely did when we had family come to visit us in italy. (Coming from someone who lived there for a few years.)Obviously adjust according to your plans and what youd like to prioritize! It's well-paced, offering a good balance between historical cities, coas
Dani

Dani

45 likes

The cover of SUGAR mag, October 2000, features a smiling young woman in a pink top. Headlines include 'BOYS, BOYS, BOYS!', 'Perfect your boy-baiting skills', and 'Shocking True Stories'. The Y2K aesthetic includes colorful hearts and flowers.
An advertisement for Boots Single Use Cameras shows three colorful disposable cameras (pink, blue, purple) on a green background. The ad highlights a '3 for 2' offer, equating to £5.33 each, normally £7.99. A quiz section is partially visible.
A magazine page features a 'How dare you?' quiz with a young woman balancing on a tree branch. The quiz includes multiple-choice questions about social scenarios, with scoring categories for different point ranges at the bottom.
SUGAR magazine Fall 2000
Here’s another Teen magazine throwback from October 2000! #teenmagazine #magazines #2000kids #magazinecollection #britneyspears #y2k #retro #vintage #throwback Let me know if you like these posts and would like to see more!! #letschat
Aftonjade88

Aftonjade88

23 likes

An open Bible displays a colorful illustration of 'I am the bread of life' from John 6:35. A tablet shows various digital Bible art ideas, alongside a drink, pens, and other desk items, creating a cozy Bible study scene.
An open Bible shows the Exodus 15 passage with a hand-drawn illustration depicting people crossing the Red Sea, with Moses and the Israelites on one side and the parted waters on the other.
An open Bible displays the Luke 12:2-5 passage, highlighted, with a hand-drawn illustration of a person holding a cross, symbolizing courage and faith.
Bible art ideas 🥰
I love me some cozy bible art days ☺️ You can do this with a friend at a park and make a picnic with it, at home with a candle lit or even at a coffee shop 😊☕️ Lmk what is your favorite!!! And send in the chat some of your ideas or ones you’ve found that you love 😊 #bibleartideas #bi
LYD LUX 🤍🎧☁️✨

LYD LUX 🤍🎧☁️✨

303 likes

TRAVEL BUCKET LIST 2024
I have made your travel bucket list for 2024 — surprise!! Haha, but really.. if these places aren’t on your travel bucket list, you need to add them immediately! 🌎 I have been to all 3 of these places & I would 100% go back… 1. Zakynthos , Greece 2. Eleuthera , Bahamas 3. Lagos , Portu
LINDZ

LINDZ

28 likes

read this book immediately!
This past month I finished a book that had been on my shelf for over a year and over course was kicking myself afterward. It had taken me so long to read a book I ended up loving! Better late than never though. Enter Ghost is a tender, realistic look at modern day Palestine and the complicated sens
bookrvws

bookrvws

31 likes

My Fortnite Code
I finally completely my first ✨big streamer dream✨ and I got a Fortnite Support A Creator Code! It is: MORGN 💖 Thank you to everyone who decides to use it in advance. 🥰 This has legit been my dream since the very beginning, even before streaming when I was just a little Fortnite map creator with
𝕸𝖔𝖗𝖌𝖓 ✦ TwitchAffiliate

𝕸𝖔𝖗𝖌𝖓 ✦ TwitchAffiliate

2 likes

A close-up shot of a book with Arabic calligraphy and a cup, featuring the handwritten title 'my Ramadan Du'a List' overlaid on the image.
A du'a for starting Ramadan right, presented with Arabic text, transliteration, and English translation, against a background of open books and reading glasses.
A du'a for keeping the fast, displayed with Arabic text, transliteration, and English translation, set against a background of open books and reading glasses.
My Ramadan Du’a List
As promised, here’s a list of a few of my go-to du’as that I’ve saved for the month of Ramadan! And a bit of background info on them: 1- Du’a to start off Ramadan right This du’a was taught to the Companions of the Prophet (ﷺ), which they supplicated at the commencement of every month. So it i
Ayaat

Ayaat

155 likes

A woman with sunglasses sits on a cliff overlooking a river and hills under a clear blue sky. The text overlay reads "FRENCH word of the DAY" and the Lemon8 username @bonjour.anais is visible.
An orange graphic displays the French phrase "T'inquiète" with its pronunciation "[tahn-kiet]" and English translation "don't worry". An example sentence "T'inquiète, ça va bien se passer" is also shown, with the Lemon8 username @bonjour.anais.
An orange graphic presents example dialogue for "T'inquiète", showing a conversation about being late and the response "No worries". The Lemon8 username @bonjour.anais is at the bottom.
add this to your french vocabulary
T'inquiète" is a super common, casual French phrase meaning "Don't worry" or "No worries." It’s a shortened version of "Ne t’inquiète pas", so knowing this version is a great phrase to sound more natural in conversations. You’ll hear it a lot in casual conversati
Anaïs D’Ottavio

Anaïs D’Ottavio

50 likes

2 types of movements for glute growth
Lengthened Movements = Extremely demanding (very often compound movements, though not always) 🏋🏼‍♀️GOODMORNINGS 🏋🏼‍♀️RDLS 🏋🏼‍♀️STEPUPS 🏋🏼‍♀️BSS 🏋🏼‍♀️LUNGES Short Movements = Much less demanding (very often single joint isolation movements, though not always) 🏋🏼‍♀️HIP THRUSTS 🏋🏼‍♀️KAS GLUT
a_yoshi_badd

a_yoshi_badd

69 likes

A hand holds an e-reader displaying the book cover for Abby Jimenez's 'Just for the Summer.' Text overlays indicate 'ARC REVIEW,' 'Available April 2, 2024,' and themes like 'Fake Dating,' 'Family Drama,' 'A dating curse,' and 'Dual POV.' Five gold stars and 'Lemon8 @bookrecsfromjess' are also visible.
✨ARC REVIEW✨ Just for the Summer by Abby Jimenez
Every time I think that I’ve found my favorite book, Abby Jimenez writes another and it immediately goes to the top of my list. Abby has such an incredible talent of telling a story in a way that will steal your heart, have you laughing hysterically and at the same time sobbing like you’ve watched
Jess VB

Jess VB

8 likes

Nursing school!🩺
#nursingstudent #nursingstudentlife #nursingstudentaesthetics #nursingstudenttips #nursingschool #crnaschool #nursingmajor #lemon8diarychallenge #lemon8bookclub #Lemon8Diary
ChaylaVelasquez

ChaylaVelasquez

53 likes

MY DREAM THRIFT LIST
i genuinely never thought i would be the person that likes antiques as much as i do now. im sold immediately with these finds!
Nicole Burge 🤍🍑🥂🤠

Nicole Burge 🤍🍑🥂🤠

38 likes

See more