Python Projects

Changes to User Input with Python

PREREQUISITES

To Practice this Program, you should have a basic knowledge of the following Topics:

PYTHON-FUNCTIONSS

INPUT & PRINT FUNCTION

We will use Input & Print Function to collect & print data from the website user into variables.

md

STRING METHODS

We will use string methods to change user entry in a specified mentioned method.

WHAT TO DO ?

Collect Data from the applicant and change it in the specified mentioned format :

Position Applying For(IT Professional/ IT Lead / IT Project Manager) : _____ (Change it in Capital Format)

Name : _____ (Change it in Title Format)

Email : _____ (Change it in Lower Format)

Mobile No. : _____ (Remove Before and After Spaces)

IT Languages Known(C++ / Java / Python) : _____  (Change it in Capitalize Format)

Experience(Fresher/Upto 1 Year/ More than 2Years): ______ (No change)

Work Overtime ? (Yes/No) : _______ (Change in Title and Check user Entry For Yes)

Shift (Day/Night/ Rotational) : _______ (Remove Before and After Spaces)

In the end, print a conclusion from user entry in specified format like following :

Output:

_______(name) is looking a job for ___(Position Applying For) in IT. He/She has done _____(Languages known) and has an experience of ___ Years.

HOW TO DO ?

Following are the steps to do :

01.

CREATE INPUT WITH STRING METHODS

At First, We have to create input variables with specified string method.

</p>
<div class="wp-block-codemirror-blocks-code-block code-block">
<pre>name = input("Write your name ? ")
email = input("Write your email ? ")
mobile = input("Write your mobile Number ? ")
address = input("Write your address ? ")
print("Write something about yourself ? ")
about_me = input("")
print("Write your Professional Experience ? ")
professional_experience = input("")
print("Write your Educational Qualifications ? ")
education = input("")
print("What skills do you have ? ")
skills = input("")
father = input("Write your Father's Name ? ")
marital_status = input("State your Marital Status ")
hometown = input("Where is your hometown ? ")
</pre>
</div>
<p>

02.

PRINT DATA

Finally, We will Output/Print Out the Data in the mentioned format using Print Function.

</p>
<div class="wp-block-codemirror-blocks-code-block code-block">
<pre>print() # Creating Gap with blank line.
print() # Creating Gap with blank line.
print("# Now Printing/Outputing the C.V")
print()
print("Name: " + name)
print("Email-id: " + email)
print("Mobile Number: " + mobile)
print("Address : " + address)
print()
print("About Me: ")
print(about_me)
print("Professional Experience: ")
print(professional_experience)
print("Educational Qualifications: ")
print(education)
print("Skills: ")
print(skills)
print()
print()
print("Personal Information")
print("Father's Name: " + father)
print("Marital Status: " + marital_status)
print("Hometown: " + hometown)</pre>
</div>
<p>
Things We Covered
  • Accepting User Data (Input Function)
  • Title, Lower, Capitalize, Strip (String Methods)
  • Print/Output the Data (Input Function)

Posted by Akshay Gupta

Leave a Reply

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