DARREN TROFIMCZUK
  • Home
  • Publications
  • MY COURSES
    • Artificial Intelligence
    • HTML
    • Python
    • Excel Basics >
      • Cell References
      • Charts & Filtering
      • Basic Functions
      • Filtering
      • VLookUp
      • Pivot Tables
      • HLookUp
      • SumIF & SumIFS
    • Online Analytics & SEO >
      • PowerBI Desktop / Analytics
    • Project Management Tools
    • Digital Footprint
    • CRM-Hubspot & Dynamics
  • CV
  • Contact

Python Code

These support files are for designed to support the videos on my YouTube channel for learning how to use Python code. 
Picture

Picture
YOUTUBE URL LINK:
Key code for video part 1:
​* Print function:
print ('hello world') 
Print (3)

* Python variables
a = 6

b = 3

c = ('Darren coding class')
print (a)
print (b)

* Swapping variables 
a = 1
b = 'Darren'
c = a   
>> variable c is the same as variable a (1)
d = b 
  >> variable d is the same as variable b (Darren)

* Arithmetic with variables
Task 1 - 
Create these number variables
a = 6

b = 3

d = 10

e = 15


What is:  a + b / 3 


Task 2
(a + b) / 2 (e * a)



Picture
Website YouTube URL:
Key code for video part 2:

* if clause/statement
a = 10
b = 2

if a < b:
      print (‘a is less than b’)  
print (‘a is greater than b’)

* Else statement
c = 3
d = 4

if c < d:
    print ('c is less than d’) 
else:
    print ('c is NOT less than d’)

* Elif and equal to sign ==

e = 10
f = 8

if e < f:
    print (‘e is less than f’)

elif e==f:
    print ('e is equal to f’)

else:  
    print (‘e is greater than f’)



  • Home
  • Publications
  • MY COURSES
    • Artificial Intelligence
    • HTML
    • Python
    • Excel Basics >
      • Cell References
      • Charts & Filtering
      • Basic Functions
      • Filtering
      • VLookUp
      • Pivot Tables
      • HLookUp
      • SumIF & SumIFS
    • Online Analytics & SEO >
      • PowerBI Desktop / Analytics
    • Project Management Tools
    • Digital Footprint
    • CRM-Hubspot & Dynamics
  • CV
  • Contact