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
- Host: GitHub
- URL: https://github.com/wyntonfranklin/funwithpy
- Owner: wyntonfranklin
- Created: 2019-01-31T23:21:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T00:26:07.000Z (about 7 years ago)
- Last Synced: 2025-04-26T22:54:09.806Z (11 months ago)
- Topics: python, python-tutorial
- Language: Python
- Homepage: https://wftutorials.blog/2019/02/12/fun-with-python-part-1/
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.