Skip to content

Getting started with python. Snippets to help you understand python better.

Notifications You must be signed in to change notification settings

wftutorials/python-snippets

Repository files navigation

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

Getting started with python. Snippets to help you understand python better.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages