Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

P1.3 - Python module

Curators

Contents

Lecture 1

  • how to use python:

    • interactively (shell, jupyter)
    • script (...)
  • identifiers, keywords, operators

  • literals, compund data structures (i.e., tuple, list, set, dict)

  • control flow tools (i.e., conditional, loops, reminder, context, exceptions)

    • special looping functions (i.e., reversed,zip,enumerate,sorted)
  • definition of a function

    • keyword arguments
    • positional arguments
    • lambda expressions
    • function annotations
  • exercises/lecture_1_exercises.py:

    • is_palindrome(string)
    • histogram_letters(string)
    • get_most_frequent(list)
    • which_duplicates(list)
    • compute_factorial(a)
    • is_prime(a)
    • is_divisor(a,b)

References and Text Books:

Attribution

Part of the material was taken from this collection of jupiter-logo notebooks