top of page
learn_data_science.jpg

Data Scientist Program

 

Free Online Data Science Training for Complete Beginners.
 


No prior coding knowledge required!

Results report

Writer: sefako dorlote djamansefako dorlote djaman

You have given a test to the students in your class. Now, you want to display their results. The first thing you need to do is to know the grade of each student. In input, this function will allow you to see the results.

# display results
def results():
    x = int(input("please insert your grade : "))
    if x > 20 :
        print('error')
    elif x < 10 :
        print('achievement level : failure')
    elif x <= 12 :
        print('achievement level : passable')
    elif x <=14 :
        print('achievement level : satisfactory')  
    elif x <= 16 :
        print('achievement level : good')
    elif x <= 18 :    
        print('achievement level : very good')
    else :
        print('achievement level : excellent')  

            

To set the variable x, the student will have to insert his grade. The results will then be displayed.


This is an example of a test performed using the code above for an student :

# input 
results()

After writing the results function, a line appears to indicate the score. Then we will have the output below:

# output
please insert your grade : 15 
achievement level : good 

So this student has good as achievement level.




 
 

Comments


COURSES, PROGRAMS & CERTIFICATIONS

 

Advanced Business Analytics Specialization

Applied Data Science with Python (University of Michigan)

Data Analyst Professional Certificate (IBM)

Data Science Professional Certificate (IBM)

Data Science Specialization (John Hopkins University)

Data Science with Python Certification Training 

Data Scientist Career Path

Data Scientist Nano Degree Program

Data Scientist Program

Deep Learning Specialization

Machine Learning Course (Andrew Ng @ Stanford)

Machine Learning, Data Science and Deep Learning

Machine Learning Specialization (University of Washington)

Master Python for Data Science

Mathematics for Machine Learning (Imperial College London)

Programming with Python

Python for Everybody Specialization (University of Michigan)

Python Machine Learning Certification Training

Reinforcement Learning Specialization (University of Alberta)

Join our mailing list

Data Insight participates in affiliate programs and may sometimes get a commission through purchases made through our links without any additional cost to our visitors.

bottom of page