Want to create interactive content? It’s easy in Genially!

Get started free

Copy - Coding_sample

sll lss

Created on December 5, 2023

Start designing with a free template

Discover more than 1500 professional designs like these:

Word Search: Corporate Culture

Corporate Escape Room: Operation Christmas

Happy Holidays Mobile Card

Christmas Magic: Discover Your Character!

Christmas Spirit Test

Branching Scenario: Save Christmas

Correct Concepts

Transcript

a, b, c, x

( )

quadratic

def

quad_term = a * x ** 2 lin_term = b * x

return

quad_term + lin_term + c

(quad_term)

print

print ("Next")

Practice the composition of functions:

Compare your code

def

result

define

return

side_length

def cube_surface_area(side_length): face_area = side_length ** 2 return 6 * face_area area = cube_surface_area(3)

Did you get it right?

(side_length)

face_area = side_length ** 2

6 * face_area

area = cube_surface_area (3)

cube_surface_area

Thank you for your submission.

Focus on Definitions: Statement A Python statement is a piece of code which is complete and can be run or “executed” by the Python interpreter (the program on your computer which runs the Python code). Normally, and everywhere in this course, there will be one statement per line of code. The code of a statement tells the computer to do something. In the cases above, each statement calls the print function. For now, statements will be executed one after another, from top to bottom.

Did you get it right?

Lorem ipsum dolor