fb pixel

Introduction to Python

  • Profound Academy

    • Status
      • 1
        Input and Output
      • 2
        Variables and Integer Arithmetic
      • 3
        Conditional Operators
      • 4
        Advanced Conditions - Nesting
      • 5
        Types and Variables
      • 6
        Strings
      • 7
        Lists
      • 8
        For Loops
      • 9
        While Loops
      • 10
        continue, break, while...else
      • 11
        String and List methods
      • 12
        Nested Loops
      • 13
        List Comprehension
      • 14
        Tuples and Sets
      • 15
        dict
      • 16
        Functions
      • 17
        Functions 2
      • 18
        Lambda and higher-order functions
      • 19
        Files

  • Complex graphs

    In one of the math assignments your teacher asks you to plot the following function:
    Knowing the available software available online, you do it very quickly. Yet, your teacher asks you to write your own program that would print this graph.
    For that, as a first step, you would need to know the value of the function at each possible coordinate.
    notion image
    You decide to first write a program that given a single coordinate, would print the value of the function.
    The input consists of two floating-point numbers x and y.
    The program should print the value of the function written above.
    Input
    Output
    0 0
    1
     
    To check your solution you need to sign in
    Sign in to continue