Python: loops & comprehensions
names = ["asha", "ravi", "meera"]
for i, name in enumerate(names, start=1):
print(i, name.title())
lengths = {n: len(n) for n in names}
long_names = [n for n in names if len(n) > 4]Free resources
Step-by-step roadmaps, copy-ready cheat sheets and a free starter course, so you can feel the SharkSkill way of learning before you commit.
Pick a track and tick off each step as you go.
Small snippets you will use again and again.
names = ["asha", "ravi", "meera"]
for i, name in enumerate(names, start=1):
print(i, name.title())
lengths = {n: len(n) for n in names}
long_names = [n for n in names if len(n) > 4]git switch -c feat/login
git add -p
git commit -m "feat: add login form"
git push -u origin feat/login
# open a pull request, get a reviewSELECT c.name, SUM(o.total) AS revenue
FROM customers c
JOIN orders o ON o.customer_id = c.id
GROUP BY c.name
ORDER BY revenue DESC
LIMIT 5;docker build -t myapp .
docker run -d -p 3000:3000 --name myapp myapp
docker logs -f myappNew resources are added regularly. Follow us on YouTube for video lessons.
Start today
Join a cohort, build projects with mentor feedback and graduate with a portfolio.