Skip to content

Jekahome/Python_Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn Python

Alias python3

echo "alias python=python3" > ~/.bashrc
source ~/.bashrc 


$ echo "alias python=python3" > ~/.bash_profile
или
$ sudo nano ~/.bash_profile
alias python=python3

$ source ~/.bash_profile

Или
sudo ln -s /usr/bin/python3 /usr/bin/python

Base

Функции

Логические операции and,or,not

Оператор in

Цикл while, for

Видимость глобальная и локальная

Конструкция match 

Types

bool - False, True

int - int(1)

float - float(0.5)

complex - 1+2j

str - str('hello') immutable

tuple -  tuple(["Tom", 37, "Google"]) immutable

range - range(5) immutable

dictionary - dict({1: "Tom", 2: "Bob", 3: "Bill"}) map

list - list([1, 2, 3, 4, 5]) array

set - set(["Mike", "Bill", "Ted"]) unique

OOP

Function

Testing

Files

Data Time

About

Python lessons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •