๐งช ๅ่กจๅบ็ก
โฑ๏ธ 20-25 min๐ Beginner
main.py
Costs 1 credit
ๅ ่ฝฝ็ผ่พๅจไธญ...
่พๅบ Outputๆง่กๆๅ
# ่ฟ่กไปฃ็ ๅ๏ผ่พๅบๅฐๆพ็คบๅจ่ฟ้ # ๆ Ctrl+Enter ๅฟซ้่ฟ่ก
Terminal (Simulated)Install commands are simulated only, no real network requests
$
Step 1: ๅๅปบๅ่กจ
ๅ่กจๆฏโๆๅบๅฏๅๅฎนๅจโ๏ผ้ๅๅญๆพๅ็ฑปๆ็ธๅ ณๆฐๆฎใ
ๅบๅฑ้ป่พ๏ผ
ๅ่กจไผๆ็ดขๅผ้กบๅบๅญๅจๅ ็ด ๏ผ0,1,2...๏ผใ
่ฟๆๅณ็ไฝ ๅฏไปฅๆขๆดไฝๅค็๏ผไน่ฝๆไฝ็ฝฎ็ฒพๅ่ฎฟ้ฎใ
ๅ่กจไผๆ็ดขๅผ้กบๅบๅญๅจๅ ็ด ๏ผ0,1,2...๏ผใ
len() ่ฟๅๅฝๅๅ
็ด ๆฐ้ใ่ฟๆๅณ็ไฝ ๅฏไปฅๆขๆดไฝๅค็๏ผไน่ฝๆไฝ็ฝฎ็ฒพๅ่ฎฟ้ฎใ
ๆๅ่กจๆณๆไธไธชๅธฆ็ผๅท็ๆถ็บณ็๏ผๆฏไธชๆ ผๅญๆพไธไธชๆฐดๆ๏ผๆ้กบๅบๆๅใ
ไฝ ็ไปปๅก๏ผ
- ๅๅปบๅ่กจ
fruits = ["apple", "banana", "orange"] - ่พๅบๆดไธชๅ่กจ
- ่พๅบๅ่กจ้ฟๅบฆ
Self-Check List
- ๅๅปบๅ่กจ
- ่ทๅๅ่กจ้ฟๅบฆ
Transfer Template
print(fruits) print(len(fruits))
After completing this step, you should be able to independently explain and reproduce this concept, then apply it to similar problems.