4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.See more
Image: 4geeks-devs-logo_1763162063433
SIGN IN
Free·Interactive exercise

Learn Python Loops and lists Interactively

Practice Python Lists and tuples (arrays) with interactive auto-graded exercises and video solutions

This exercise includes

Technical Skills

PYTHONLOOPS
AI assistance for guided help
Real code, real-time output
Instant test validation
Progress saved to your path

Try this exercise

Create an account and get immediate access to this exercise

By signing up, you agree to the Terms and Conditions and Privacy Policy

Already have an account?

Skill level

EASY

Time to complete

10 hours

Access

Free

Prerequisites

None

About this exercise

Practice Python Lists and tuples (arrays) with interactive auto-graded exercises and video solutions
Video preview

Syllabus

See the content included in this exercise

1

Welcome to Python Lists!

Get an overview of the topics you will explore in this course, including lists, tuples, loops, mapping, filtering, matrices, and merging lists.

Video preview
2

Hello World

Learn to use the print() function to display text in the Python console.

View content
  • CODE
    Access and retrieve
  • CODE
    Retrieve items
  • CODE
    Print the last one
  • CODE
    Loop from 1 to 17
  • CODE
    Add items to the list
3

Loop list

Practice looping through a list with a for loop to print every element one by one in the console.

View content
  • CODE
    Loop from the end
  • CODE
    Loop adding two
  • CODE
    Loop from the half to the end
  • CODE
    One last looping
  • CODE
    Finding Wally
Video preview
4

Flip list

Practice inverting a list by looping through it and appending each item to a new list, then print the result.

Video preview
5

Mixed List

Practice writing a function that uses a for loop and type() to print the data type of each element in a mixed list.

View content
  • CODE
    Count On
Video preview
...

Get an AI Certificate Backed by 4Geeks

This exercise is part of a real course. Find out which one is yours

Choose between AI Engineering, AI Flex, or AI Fluency, our artificial intelligence programs designed to take you from zero to certified, no matter your prior experience. 86% of our graduates land a job in the field within an average of 3 months. 
Compare the 3 programs and find the one that fits your pace and goals.
Explore Options
Code editor on laptop

Related exercises

Continue learning about this exercise's topics

Learn Python Loops and lists Interactively

Learn Python Loops and lists Interactively

python
loops

Practice Python Lists and tuples (arrays) with interactive auto-graded exercises and video solutions

Try this exercise
Master Python by practice (interactive)

Master Python by practice (interactive)

python
loops
functions

Practice your Python programming skills with this interactive and auto-graded set of exercises.

Try this exercise
Linear Algebra in Python and NumPy

Linear Algebra in Python and NumPy

python
numpy
data-analysis
linear-algebra

Exercises and examples for linear algebra using Python and NumPy, covering topics such as vectors, matrices, and linear transformations.

Try this exercise
Learn Object Oriented Programming with Python

Learn Object Oriented Programming with Python

python
object-oriented-programing
oop
programacion-orientada-a-objetos
poo

Learn Object Oriented Programming concepts using Python, from basic to advanced topics. This tutorial covers classes, inheritance, polymorphism, encapsulation, and more. Ideal for beginners and experienced developers looking to deepen…

Try this exercise
Python Modules Tutorial

Python Modules Tutorial

python
modules

Learn how to use and create Python modules, from basic imports to advanced concepts

Try this exercise
Learn Python Best Practices

Learn Python Best Practices

python
exception-handling
clean-code

Master Python best practices through hands-on exercises covering clean code, testing, error handling, and code organization. Perfect for developers looking to write more maintainable and professional Python code.

Try this exercise