0% found this document useful (0 votes)
6 views1 page

CS Library

The document is a Python script that prompts users for personal information including name, age, number of residents, income, telephone number, gender, race, birth year, birthday, house cost, and occupation. It uses the input data to display a summary of the user's name and age. The script includes pauses to enhance the user experience.

Uploaded by

hhhnnn2592588
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

CS Library

The document is a Python script that prompts users for personal information including name, age, number of residents, income, telephone number, gender, race, birth year, birthday, house cost, and occupation. It uses the input data to display a summary of the user's name and age. The script includes pauses to enhance the user experience.

Uploaded by

hhhnnn2592588
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Python Questionnaire

import time
name = input("What is your name? ")
print("")
age = int(input("What is your age? "))
print("")
people = int(input("How many people were living or staying in this house, apartment, or
mobile home on April
1, 2020? "))
print("")
income = float(input("What was your annual income in 2019? (in USD) "))
print("")
tele = int(input("What is your telephone number? (answer in only numbers) "))
print("")
gender = input("Are you a male or female? ")
print("")
race = input("What is your race? ")
print("")
year = int(input("What year were you born? "))
print("")
birth = float(input("What is your birthday? ([Link]) "))
print("")
owned = int(input("How much does this house, apartment, or mobile home cost? (Round to
the nearest
hundred thousand) "))
print("")
job = input("What is your occupation? ")
print("")
[Link](1)
print("your name is "+name+".") #this is a string example
print("")
[Link](1)
print(name+" is "+str(age)+" year old.")#this is an integer example
print("")
[Link](1)

PAGE 17

You might also like