Write a program to display your name in python


Asked by admin @ in Computer Science viewed by 345 People


Write a code in python to display your name and age.

Answered by admin @



For name:

name = input(""What is your name? "") # displays the message on screen and stores the input from the user in a variable called name

print(""Hi """" +name)


for address:

number = input(""Enter your house number: "")

street = input(""Enter your street name: "")

town = input(""Enter your town/city: "")

county = input(""Enter your county: "")

postcode = input(""Enter your postcode: "")

print(""\nAddress Details:\n"" + ""Street: "" + number + "" "" + street + ""\nTown/City: "" + town + ""\nCounty: "" + county + ""\nPostcode: "" + postcode)

For age:

age = int(input(""Enter your age ""))

if age >= 18:

print(""You are an adult"")

else:

print(""You are still a child"")


Similar Questions

Write a program to calculate compound interest in python

Asked by admin @ in Physics viewed by 419 persons

Write a program in python to calculate the compound interest​

Write a c++ program to accept and print your name

Asked by admin @ in Computer Science viewed by 330 persons

Write a C++ program to accept and print your name?​

Write a program to swap two numbers in python

Asked by admin @ in Computer Science viewed by 346 persons

Write a program is python to swap two numbers.

Another name for a pre-programmed formula in excel is

Asked by admin @ in Computer Science viewed by 306 persons

21. Pre-programmed formula in excel is called asFunctionGraphCellSet​

Write a program to calculate area of circle in c++

Asked by admin @ in Computers and Technology viewed by 313 persons

I want to write a C++ program to read the diameter of a circle. The program should find and display the area and circumference of the circle. Define a constant …

How to program a tic tac toe board in python

Asked by admin @ in Computers and Technology viewed by 330 persons

Write a program for TIC TAC TOE in PYTHON

This is the code name for the atomic bomb program

Asked by admin @ in History viewed by 284 persons

The "Manhattan Project" was the code name for the A) U.S. plan to invade Japan. B) German use of jet aircraft. C) Allied plan to invade Europe. D) U.S. plans …

To write the correct and effective program we much first

Asked by admin @ in Computer Science viewed by 1028 persons

To write the correct and effective program we must first

Russian space programs name meant east what was it

Asked by admin @ in History viewed by 377 persons

A russian space programs name meant east what was it

Program to find greatest of three numbers in python

Asked by admin @ in Computer Science viewed by 342 persons

Write a program in python to find the greatest number among three numbers​

Identify the below given asanas and write the names

Asked by admin @ in Environmental Sciences viewed by 719 persons

Q.13 Identify the below given below Yoga Asanas and write their names​

Write the iupac name of the following coordination compounds

Asked by admin @ in Chemistry viewed by 319 persons

Write the IUPAC names of the following coordination compounds: (i) [Co(NH3)6]Cl3 (ii) [Co(NH3)5Cl]Cl2 (iii) K3[Fe(CN)6] (iv) K3[Fe(C2O4)3] (v) K2[PdCl4] (vi) [Pt(NH3)2Cl(NH2CH3)]Cl

Write the iupac names of the following coordination compounds

Asked by admin @ in Chemistry viewed by 335 persons

Write the IUPAC names of the following coordination compounds: (i) [Co(NH3)6]Cl3 (ii) [Co(NH3)5Cl]Cl2 (iii) K3[Fe(CN)6] (iv) K3[Fe(C2O4)3] (v) K2[PdCl4] (vi) [Pt(NH3)2Cl(NH2CH3)]Cl

A name adopted by an author in his writings

Asked by admin @ in English viewed by 309 persons

A name adopted by an author in his writings A.Nickname B.Pseudonym C.Nomenclature D.Title

Bind function in python socket programming is used to

Asked by admin @ in Computer Science viewed by 381 persons

Bind() function in Python socket programming is used to: 1. Specify the port for service on the specified host2. Read data from the socket 3.Send data to the socket …

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 19021 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15810 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10973 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10403 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8722 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8136 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7842 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6487 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5790 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5693 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5476 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4981 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4971 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4684 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4488 persons