CGGM

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Coursera | Online Courses From Top Universities. Join for Free | Coursera https://www.coursera.

org/learn/learn-to-program/exam/iYLq2/python-variables-and-functions

1 help(round)

1 help(id)

1 of 5 18-08-2017, 07:15
Coursera | Online Courses From Top Universities. Join for Free | Coursera https://www.coursera.org/learn/learn-to-program/exam/iYLq2/python-variables-and-functions

1 x = 8 / 4

1 x = 12 // 3

1 x = 3
2 y = 5
3 x = y

2 of 5 18-08-2017, 07:15
Coursera | Online Courses From Top Universities. Join for Free | Coursera https://www.coursera.org/learn/learn-to-program/exam/iYLq2/python-variables-and-functions

1 x = 3
2 y = 5
3 x = y

1 apple = banana

1 def f(data):
2 return data * 0.5

3 of 5 18-08-2017, 07:15
Coursera | Online Courses From Top Universities. Join for Free | Coursera https://www.coursera.org/learn/learn-to-program/exam/iYLq2/python-variables-and-functions

1 def g(a, b):


2 c = a + b
3 return c

1 value = 8.564
2 result = round(value)

1 round(45.342)

4 of 5 18-08-2017, 07:15
Coursera | Online Courses From Top Universities. Join for Free | Coursera https://www.coursera.org/learn/learn-to-program/exam/iYLq2/python-variables-and-functions

1 def bigger(x):
2 return x ** x
3
4 bigger(12)

()

5 of 5 18-08-2017, 07:15

You might also like