Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Reference

This repository serves as a reference for different pieces of python functionality.

Each folder corresponds to an individual pieces of python functionality - for example, how to iterate through a dictionary in python - and contains a single file with code examples and (possibly) a README describing how to use the code.

Fork and / or clone this repository to local to play with the code yourself.

Each example code example will also be listed in this README. Use Ctrl + f or Cmnd + f to quickly lookup which piece of functionality you're looking for.

dictionary iteration.

my_dict = {"key": "value"}

for key in my_dict:
    print("printing key", key)
    print("printing value", my_dict.get(key))

the not operator

if not False:
    print("this will print")

if not True:
    print("this will not print")

comments in conditionals

if not True:
    print("this won't print")
# this comment will not interfere
elif True:
    print("this will print")

About

An encyclopedia of different pieces of python functionality

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages