User Tools

Site Tools


tanszek:oktatas:exercise_3

This is an old revision of the document!


Python Programming Concepts and Data Structures

  1. Describe the general structure of a Python program. What are the key components that make up a Python script?
  2. Explain the difference between a list and a dictionary in Python. Provide an example of each.
  3. Explain how branching (conditional statements) and loops (cycles) are implemented in Python. Provide an example of each.
  4. Write a Python function that takes an integer as input and returns whether the number is prime. Use a loop in your implementation.
tanszek/oktatas/exercise_3.1725210127.txt.gz · Last modified: 2024/09/01 17:02 by nasraldeen