
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
What is the error on this
Hints: Was x1 defined?
![[5]: import matplotlib.pyplot as plt
#PythonGeeks dataset
#Maths Marks
students_id = [1,2,3,4,5,6,7,8,9,10]
x1=students_id
students_marks
|y1=students_marks
#science marks
students_id= [1,2,3,4,5,6,7,8,9,10]
|x2=students_id
students_marks
|y2=students_marks
plt.show()
Students Marks
100
plt.scatter (x1, y1, c ="yellow", linewidths 1, marker ="*", edgecolo
plt.scatter(x2, y2, c = "aqua", linewidths = 1, marker ="^", edgecolor
plt.title("PythonGeeks")
plt.xlabel("Students ID")
plt.ylabel("Students Marks")
90
80-
70
60
50-
40
=
30
A
=
[95,98,83,75,67,58,67,78,53,32]
A
2
[58,90,67,78,53,32,95,98,83,67,]
4
4
PythonGeeks
A
6
Students ID
=
☆
8
10](https://content.bartleby.com/qna-images/question/913a0921-d398-48e9-845b-58c3dce12c9b/231b92e9-a590-4663-8494-89e93c805dfa/kfw9ez_thumbnail.png)
Transcribed Image Text:[5]: import matplotlib.pyplot as plt
#PythonGeeks dataset
#Maths Marks
students_id = [1,2,3,4,5,6,7,8,9,10]
x1=students_id
students_marks
|y1=students_marks
#science marks
students_id= [1,2,3,4,5,6,7,8,9,10]
|x2=students_id
students_marks
|y2=students_marks
plt.show()
Students Marks
100
plt.scatter (x1, y1, c ="yellow", linewidths 1, marker ="*", edgecolo
plt.scatter(x2, y2, c = "aqua", linewidths = 1, marker ="^", edgecolor
plt.title("PythonGeeks")
plt.xlabel("Students ID")
plt.ylabel("Students Marks")
90
80-
70
60
50-
40
=
30
A
=
[95,98,83,75,67,58,67,78,53,32]
A
2
[58,90,67,78,53,32,95,98,83,67,]
4
4
PythonGeeks
A
6
Students ID
=
☆
8
10
Expert Solution

arrow_forward
Step 1
There are several errors in this program. The first error is that the x1 and y1 variables are not defined. The second error is that the x2 and y2 variables are not defined.
Step by stepSolved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- It is often said that nothing in life is certain but death and taxes. For a programmer or data scientist, however, nothing is certain but encountering errors. In Python, there are two primary types of errors, both of which you are likely familiar with: syntax errors and exceptions. Syntax errors occur when the proper structure of the language is not followed, while exceptions are errors that occur during the execution of a program. These include errors such as ZeroDivision Error, TypeError, NameError, and many more! Under the hood, these errors are based in the concepts of object orientation, and all exceptions are class objects. If you're interested in more detailed explanations of the structure of exceptions as well as how to create your own, check out this article from the Python documentation! In the meantime, we'll implement our own version of an Error class. Complete the Error, SyntaxError, and ZeroDivisionError classes such that they create the correct messages when called. •…arrow_forwardQuestion 1 Please provide all steps and explain. Consider the expression (a + b) * c, but with string values for a, b, and c. Enter that into the Python shell. What happens? Why? Full explainthe this question very fast solution sent me step by step Don't ignore any part all part work u Text typing work only not allow paper workarrow_forwardPlease give a full detailed optimized solution in Java 8 for the given problem, use the example code provided as well. Please provide comments and screenshots of code and output. Also, add the time/space complexity and the reason for it.Java 8 Code Example:import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String args[] ) throws Exception { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ } }arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education