Last active
July 11, 2018 01:52
-
-
Save SyraD/010be0e24c071d145edd1a51c1294bcc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Niyati Python 609 9041 essentials of Comp Prog: Assignment 1 | |
# Python Variable Practice | |
# Create a program to track student final grade | |
# The information is to store and track what grade the student is in | |
# Next info is student GPA | |
# Next info is student final grade | |
# Ask the user the student grade | |
# Ask the user the Student GPA | |
# the standard info is HS grade and GPA | |
# Python Program - TO get String or Integer Input from User | |
Highschool_grade={"Grade" : ['9', '10', '11', '12']} # Key Grade, value is a List of possible values | |
Student_GPA={"GPA" : ['2.2', '2.6', '4.0']} # assign GPA | |
FinalGrade={"Student Grade" : ['A', 'B', 'C', 'D']} | |
while True: | |
print("Enter '0' to exit.") | |
val = int(input("Enter any Highschool_grade number: ")) | |
flt = float(input("Enter any Student_GPA Number: ")) | |
strg = input("Enter any FinalGrade String: ") | |
if val == 0: | |
break | |
else: | |
print("Integer:",val) | |
print("Flaoting-point:",flt) | |
print("String:",strg) | |
print() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment