Skip to content
Snippets Groups Projects
module1_examples.py 371 B
Newer Older
  • Learn to ignore specific revisions
  • vand's avatar
    vand committed
    #%% module 1, example 0
    
    myname = 'vedrana'
    first_number = 5.6
    second_number = 8
    a = first_number + second_number
    b = first_number > second_number
    print(myname)
    print(a)
    print(b)
    
    #%% module 1, example 1
    
    import math
    a = 50
    b = math.sqrt(a)
    print(b)
    
    
    #%% module 1, execution in order
    
    # This will not work, since code is executed line by line
    that = 15 + this
    this = 27