Hello, could somebody help me with these solutions please? Need help asap Q1. Cr
ID: 3590904 • Letter: H
Question
Hello, could somebody help me with these solutions please? Need help asap
Explanation / Answer
Q1.
import matplotlib.pyplot as plt
x = []
y = []
for i in range(1,100,2):
x.append(i)
y.append(y**2)
plt.plot(x, y, 'ro')
plt.show()
Q2.
import random
userInput = int(input("Enter a number: "))
while True:
a = random.randrange(0,1000)
print(a)
if (a == userInput):
break
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.