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:

PYTHON PROGRAMMING QUESTION: Create a new module named generatetag.py. i. Define a

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!