LOADING

Type to search

Computers Electronics

Jetson AI Certification – Specialist

Check out the course on the Nvidia website for certification from the below link:

(Click here to see the list of tutorials)

Exercise Code mentioned below for reference : Introduction to Python

Thanks to Paul McWhorter for wonderful training on basics of python checkout the video from the link mentioned above.

while 1==1:
    numSub = 1
    SumSubj = 0
    grades =[]
    numSubj = int(input('How many subjects do you have? ' ))
    for i in range(0, numSubj, 1):
        grade = int(input('What are the grades?'))
        grades.append(grade)
    print('The grades are :' , grades)
    for i in range(0,numSubj, 1):
        SumSubj = SumSubj + grades[i]
    print('The sum of the grades are : ', SumSubj)
    print('Average of the grade are : ', SumSubj/numSubj)

Leave a Comment

Your email address will not be published. Required fields are marked *