Question: PYTHON PROGRAMMING QUESTION: Create a new module named generatetag.py. i. Define a function named genTag that accepts 3 parameters: host, username, and ram). 1. The
PYTHON PROGRAMMING QUESTION:

Create a new module named generatetag.py. i. Define a function named genTag that accepts 3 parameters: host, username, and ram). 1. The function should create an 8-digit asset tag composed of the first 2 letters of the hostname, first 2 letters of the username, the value of the ram, and a random integer between 10 and 99. Asset tags must all be uppercase. a. Example: you pass hostname = ACCOUNTI, username = jsmith11, and ram = 32. Say you generate 34 as a random number. Then the asset tag is ACIS3234. b. Return the value of the asset tag back to the calling method when called
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
