Skip to content

Latest commit

 

History

History
85 lines (42 loc) · 2.79 KB

README.md

File metadata and controls

85 lines (42 loc) · 2.79 KB

Fun with Python

Some examples on using python. I created this repository to learn or refresh myself on the Python language. You can view the blog post on it at - https://wftutorials.blog/2019/02/12/fun-with-python-part-1/

Learning Examples

first.py

Variables, types, printing, concatenation, comments.

second.py

Lists, printing lists, appending lists, getting values from a list

third.py

Arithmetic operations. Addition, multiplication, subtraction, division and modulus. Add multiplying variables and list.

four.py

String formating and some tuples. Formating decimal, floats and lists.

five.py

String functions. Len, index, spliting, endswith, join, format, partition.

six.py

Conditional statements. If and if else. Boolean operations and if in. Is statement.

seven.py

Loops. For loop. Range function. While loop.

eight.py

Functions. Function parameters.

nine.py

Classes. Init statement. Creating methods. Create a class object.

ten.py

Dictionary. Creating dictionaries. Loop through dictionaries. Del and pop statements.

eleven.py

Import statements.

twelve.py

Sample file for testing imports.

thirteen.py

Sample file for special import

fourteen.py

Sample file for special import

Working Examples

multiply.py

Requests two inputs from the user and multiplies them.

bank_account.py

Simulates some banking account features.

simple_chat.py

A simple chat application.

note_book.py

Writes a file based on input line by line.

websites_title.py

Gets the title of a inputed website.