for non programmer professionals

Thank You

The District

Who am I

Antonio Ortega Jr

Runs Eugene Web Devs meet ups

Works at twenty ideas

able to help with python

antonioortegajr.com

Expectations

demystify python

learn basics

try out coding

gain resources

ask questions

Not Expected

learn actual python just 1 hour

or even finish all lessons or even stay the whole time

Why Python??

Math

Automation

Efficiency

FUN!!

Really?? I already have a job...

Learning Struggles

Python Basics

syntax

variables

functions

loops

Topics

Syntax

Indentation indicates the line is inside the function

white space indention

🐿️ Braces 

You might hear white space a syntax is "ugly"

 

We can discuss about "beauty" later...

 

 

Pro tip:

Come to Tech Tuesday to hear many many opinions.

 

Variables

Set data a variable with an equals sign

my_variable = "pneumonoultramicroscopicsilicovolcanoconiosis"

FYI:  It is the longest word in the English language published in a dictionary, Oxford Dictionaries, which defines it as "an artificial long word said to mean a lung disease caused by inhaling very fine ash and sand dust.

Types

strings: 

 

numbers: 

 

lists:

 

dictionaries:

 

boolean:

my_variable = "I am a sting of letters"

Data comes in many types:

my_variable = 123
my_variable = ["list", "of", "words"]
my_variable = {"key": "value"}
my_variable = true

Functions

function are a block of code that does some work to return a value

Example 

Functions

def double_value(incoming_data):
    return incoming_data * 2

function will return this
"work". In this case it's just simple math.

function name

declare this is a function

function declaration end

If and Else Conditions

my_true_var = true

if my_true_var:
	print("my var is true")
else:
	print("my var was not true")

Loops

Loop through logic for use with a process.

 

This is powerful. And sometimes tricky.

Always remember you can write an infinite loop. Even programmers do this and this can overload a machine cause the program or even system to crash.

 

Always save your work as you go...

Looping

words = ["Eugene", "Web", "Devs"]
for word_variable in words:
  print(word_variable)

Moving Foward

Resources for continuing the learning

Links

https://www.freecodecamp.org/learn/scientific-computing-with-python/

https://www.learnpython.org/

https://www.youtube.com/watch?v=kqtD5dpn9C8

Eugene Tech Community(the people here)

ALSO

write me a function that loops over a list in python

Industry specific pacakages and objectives would be next, but the coding talked about so far will get you to the industry specific portion quickly

Let's code

https://github.com/eugenewebdevs/python-quick-start

Python

By Antonio Ortega