wyntonfranklin / funwithpy

Playing with the Python Language

Home Page:https://wftutorials.blog/2019/02/12/fun-with-python-part-1/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Playing with the Python Language

https://wftutorials.blog/2019/02/12/fun-with-python-part-1/


Languages

Language:Python 100.0%