Tag Archives: Video

Python 2.7 Tutorial Pt 7

PythonIn this video, I will explain the basics of Object Oriented Programming with Python. Understand that a Class is the blue print that defines what Attributes (variables) and Methods (functions), each object it builds must have.

Each Object that is created is said to be an Instance of the Class that built it. I’ll also go over what Encapsulation is.  Encapsulation is how you hide information  and constrain a user of your class to use it in the way you define. And, finally I teach you how to enforce Encapsulation by making your Attributes and Methods private.

Like always, a lot of code follows the video. If you have any questions or comments leave them below. And, if you missed my other Python Tutorials they are available here:

Continue reading Python 2.7 Tutorial Pt 7

Python 2.7 Tutorial Pt 6

Python PictureIn this video I’ll explain how to use functions in Python 2.5 through 2.7. I’m going to cover how to:

  • Create Functions
  • Pass Values to Functions
  • Create Default Values
  • Except Unlimited Arguments
  • Except Unlimited Key Value Pairs
  • Use Recursion
  • and more…

Like always, the code follows the video. If you have any questions or comments leave them below. And, if you missed my other Python Tutorials they are available here:

Here is Some Code that Demonstrates using Python Functions

#! /usr/bin/python

# Define a docstring a special function attribute
globalVariable = 10

def addNumbers(NumOne=1,NumTwo=1):
‘Adds the numbers passed to it’
return NumOne + NumTwo

def addUndefNums(NumOne=1,NumTwo=1,*args):
‘Adds the numbers passed to it’
finalValue = NumOne + NumTwo
if args:
for i in args:
finalValue += i
return finalValue
else:
return finalValue

def scopeFunction():
mainNumber = 10
print id(mainNumber)
print “mainNumber equals”, mainNumber, “in function scopeFunction”
return

def changeGlobal():
globals()[‘globalVariable’] = 20
return

def createDict(**kvargs):
for i in kvargs:
print i, kvargs[i]
print type(kvargs[i])

print type(kvargs)
print kvargs
return

def factorial(num):
if num == 1:
return 1
else:
return num * factorial(num – 1)

def printNames(first,last):
pass

def main():

# Demonstrate difference between global & local scope
mainNumber = 5
print “mainNumber equals”, mainNumber, “in function main”
scopeFunction()
print “mainNumber equals”, mainNumber, “after scopeFunction”
print id(mainNumber)

# Force a global variable to change
print “globalVariable before changeGlobal =”, globalVariable
changeGlobal()
print “globalVariable after changeGlobal =”, globalVariable

# Create a function with a docstring
print addNumbers(1)
print addNumbers.__doc__

# Add undefined number of numbers with a tuple
print addUndefNums(1,2,3,4,5,6,7,8)

# Create a dictionary
createDict(Name=’Derek’, Age=35, YearBorn=1974)
createDict(Cust1=(‘Derek’,35,1974),Cust2=(‘Sally’,25,1984),Cust3=(‘Paul’,15,1994))

# Demonstrate Recursion
print factorial(3)

“””
Demonstrate Recursion
def factorial(3):
if 3 == 1:
return 1
else:
return 3 * factorial(2)

def factorial(2):
if 2 == 1:
return 1
else:
return 2 * factorial(1)

def factorial(1):
if 1 == 1:
return 1

“””

if __name__ == ‘__main__’: main()

Python 2.7 Tutorial Pt 4

Python 2.7 TutorialI continue the Python 2.7 Tutorial by explaining a couple new things. I first go over how to turn your Python code into an executable application.

I then cover Python Conditionals. Conditionals are used to perform certain actions under one condition and other actions based on other conditions. In Python you can do this either with an IF Statement, or with something called a Conditional Expression.

Like always, the code follows the video. If you have any questions or comments leave them below. And, if you missed my other Python Tutorials they are available here:

Continue reading Python 2.7 Tutorial Pt 4

Financial Statements Video Pt 2

Puzzled About DerivativesIn this article I provide you with two videos that will explain how to read financial statements.

In the first video, I cover how the following effect your financial statements: Paying off Debt, Hiring an Employee, Buying with Credit, the Accrual Method, the Cash Method.

In the second video, I cover how product and service business balance sheets differ. I compare accrual method income statements to cash method income statements.

If you didn’t see the first video check that out here Financial Statements Video Pt 1.

Continue reading Financial Statements Video Pt 2

Financial Statements Video

Puzzled About DerivativesIn this video tutorial I explain how to create financial statements. I use an example business and walk you though how balance sheets and income statements are effected by business transactions.

I also go over and explain the following:

  • Assets
  • Equity
  • Liabilities
  • Accounts Receivable
  • Notes Payable
  • Accounts Payable
  • Prepaid Expenses

Continue reading Financial Statements Video

Decision Making Videos

Brain IdeasHere I finish going over how people go through the process of Decision Making. If you haven’t, watch the first Decision Making videos here. Each person makes each decision in very specific ways. If you understand how they make decisions you will find it very easy to negotiate and persuade them into believing what ever you would like.

To find out how they make decisions, you just need to ask them one question. If you then structure your negotiation in a way that is compatible with their way of making decisions you dramatically increase your persuasiveness.

In the videos here and in the previous article, I teach you the questions to ask and all of the many ways people make decisions. These are high level negotiation techniques and if you want to see them put into use in a more understandable way, check out my sales technique videos. (They are free also)

Continue reading Decision Making Videos

WordPress How To Video

In the previous article I answered many of the WordPress How To Questions that I’ve been getting. Many of you also requested that I create a video based on that article, so here you are.

Wordpress Problems SolvedIn this video I’ll cover the following topics:

  • Quick ways to post content to your site
  • How to Upgrade WordPress
  • 3 different ways to install themes
  • How to backup WordPress
  • And, a couple of WordPress tips

Here is the video and after it I provided links to a bunch more WordPress How To Videos and articles.

Continue reading WordPress How To Video

My Favorite Recipe

Salmon RecipeHere I provide a video of me making my favorite meal. It is extremely easy to make, delicious and healthy. It is called Salmon Favetta with a Radish, Celery and Lemon Citronette.

For the salmon, make sure that it is fresh (not frozen or precooked). Get two normal sized fillets for this specific recipe. Then follow the directions below to make the Favetta and Citronette.

Note: The Citronette will taste a little bitter by itself, but totally dreamy over the salmon and Favetta. Trust me on that and don’t mess with the recipe!

Continue reading My Favorite Recipe

Python How To Video Pt 6

Python How ToThis article and video was created because of the requests from Gent2910 and others. You guys have been having problems understanding a few concepts with Python. Specifically you’ve asked for:

  • More examples on unconventional uses for functions
  • Examples on using lists
  • Explanation on how to use elif
  • More on Conditional Expressions
  • How to catch errors, or Python Error Handling

Continue reading Python How To Video Pt 6

Baby’s First Year Video

Willow's First YearMost people get really popular on YouTube, by posting video’s of their baby on there. I thought I’d do the opposite.

After recently getting made a YouTube partner, I knew I could finely post my baby’s first year video.

It’s amazing how helpless they are, and how much they enrich your life. This has been a very special year and I hope you enjoy it with me, in the video below.

Continue reading Baby’s First Year Video