Professional Documents
Culture Documents
Homework 1
Homework 1
Homework 1
(a) Use https://automeris.io/WebPlotDigitizer/ to extract data from the following graph and save data in a csv
file.
(b) Use python to plot data extracted in point (a) as beautiful as the above graph.
(c) Use https://automeris.io/WebPlotDigitizer/ to extract data in the below graph and replot data in the exact
manner as the graph.
Problem 2: (1 point) What is the output of the following code?
valueOne = 5 ** 2
valueTwo = 5 ** 3
print(valueOne)
print(valueTwo)
p, q, r = 10, 20 ,30
print(p, q, r)
Problem 6: (2 points) Write a python code to define f(x) = 1+x2 + x3 and g(x) = √𝑥 + 2√𝑥, and plot f(x) and g(x) in
the same manner as Problem 1.
Problem 7: (1 points) Write a python code to print integers smaller than 20.