Professional Documents
Culture Documents
CGGM
CGGM
CGGM
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 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