Python Projects

Racing Game 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.

dt

INTEGER & FLOAT

We will accept the user input in float or integer so that it can be calculated.

python-py

CONDITIONALS - IF ELIF ELSE

We will use If-Elif-Else to implement the calculations as per user asked condition.

python-py

WHILE LOOP(INFINITE)

We will use while loop to keep asking user till the correct format is submitted.

WHAT TO DO ?

Collect Data from Website User and Print Out C.V in the Following Format :

Name : ____
Email : ____
Mobile : _____
Address : _____
About me:
_________________________
Professional Experience:
_________
Education Qualifications:
_________
Skills:
_________
Personal Information:
Father’s Name: ____
Marital Status : ____
Hometown : _____
HOW TO DO ?

Following are the steps to do :

01.

COLLECT DATA

At First, We have to Collect Data with Input Function in Variables.

</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)
  • Creating a Blank Line (Blank Print Function)
  • Print/Output the Data (Input Function)

Posted by Akshay Gupta

Leave a Reply

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