An open API service indexing awesome lists of open source software.

https://github.com/wyntonfranklin/funwithpy

Playing with the Python Language
https://github.com/wyntonfranklin/funwithpy

python python-tutorial

Last synced: 11 months ago
JSON representation

Playing with the Python Language

Awesome Lists containing this project

README

          

# 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**](https://github.com/wyntonfranklin/funwithpy/blob/master/first.py)

Variables, types, printing, concatenation, comments.

[**second.py**](https://github.com/wyntonfranklin/funwithpy/blob/master/second.py)

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

[**third.py**](https://github.com/wyntonfranklin/funwithpy/blob/master/third.py)

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

[**four.py**](https://github.com/wyntonfranklin/funwithpy/blob/master/four.py)

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

[**five.py**](https://github.com/wyntonfranklin/funwithpy/blob/master/five.py)

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

**[six.py](https://github.com/wyntonfranklin/funwithpy/blob/master/six.py)**

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

**[seven.py](https://github.com/wyntonfranklin/funwithpy/blob/master/seven.py)**

Loops. For loop. Range function. While loop.

[**eight.py**](https://github.com/wyntonfranklin/funwithpy/blob/master/eight.py)

Functions. Function parameters.

**[nine.py](https://github.com/wyntonfranklin/funwithpy/blob/master/nine.py)**

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

**[ten.py](https://github.com/wyntonfranklin/funwithpy/blob/master/ten.py)**

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

[**eleven.py**](https://github.com/wyntonfranklin/funwithpy/blob/master/eleven.py)

Import statements.

**twelve.py**

Sample file for testing imports.

**[thirteen.py](https://github.com/wyntonfranklin/funwithpy/blob/master/thirteen.py)**

Sample file for special import

**[fourteen.py](https://github.com/wyntonfranklin/funwithpy/blob/master/fourteen.py)**

Sample file for special import

## Working Examples

**[multiply.py](https://github.com/wyntonfranklin/funwithpy/blob/master/multiply.py)**

Requests two inputs from the user and multiplies them.

**[bank_account.py](https://github.com/wyntonfranklin/funwithpy/blob/master/bank_account.py)**

Simulates some banking account features.

**[simple_chat.py](https://github.com/wyntonfranklin/funwithpy/blob/master/simple_chat.py)**

A simple chat application.

[**note_book.py**](https://github.com/wyntonfranklin/funwithpy/blob/master/note_book.py)

Writes a file based on input line by line.

[**websites_title.py**](https://github.com/wyntonfranklin/funwithpy/blob/master/websites_title.py)

Gets the title of a inputed website.