Question: A computer program has many variables. Assuming that you need to write a program to calculate the tuition fees for the semester based on the
A computer program has many variables. Assuming that you need to write a program to calculate the tuition fees for the semester based on the number of units taken for the semester, What is a good variable name for storing the number of credits taken in Fall 2017? What is a bad variable name? What is a good but (unfortunately) illegal variable name? Please find the exact rule of legal variables Create a program that randomly creates a variable with 5 characters Steps: Create a variable that contains all alphanumeric characters Create another variable that contains only letters Use random.choice to pick from the list and print them out Hint: import string, string.ascii_letters, string.digits import random, random.choice Use + inside print function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
