Skip to content

First steps

IDLE

Installed juts for the user:

%USERPROFILE%\anaconda3\Scripts\idle.exe
or
%USERPROFILE%\anaconda3\Lib\idlelib\idle.pyw

Installed for all users:

%PROGRAMDATA%\anaconda3\Scripts\idle.exe
ou
%PROGRAMDATA%\anaconda3\Lib\idlelib\idle.pyw

Finding the installation path:

On conda prompt, type:

where anaconda

add Lib\idlelib\idle.pyw or \Scripts\idle.exe to the outputed file path.

Python console

Variables

  • setting a value

  • variable types

    • int
    • Float
    • string
    • bool

Varables and operators

code editors

  • data input and output
  • function and methods
    • importing modules and methods
    • user defined functions

Exercise Baskara

Keywords and Functions

User defined functions

Data structures - pt 1

  • Lists
  • tuples
  • Strings (as lists of characters)

data structures pt1

Flow control

  • Boolean conditions

    • if
    • else
    • elif
  • Loops

    • while
    • for
    • recursivity

guess the number game

importing modules

Data structures pt.2

  • set
  • dictionary

handeling files

  • how to read txt files files
  • how to write a txt file

END