Skip to content
Snippets Groups Projects
Select Git revision
  • 0d6f7797d41749e183efb9979661553bd7b74a67
  • master default protected
2 results

module1_examples.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    module1_examples.py 371 B
    #%% 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