0
How do i display a message for a user to input certain value? Say- please enter your DOB
10 Answers
+ 4
response = input("Please enter your DOB: ")
... will do the job.
But, it you are testing/running it on code playground, you will not have the result you're expecting, as there are limits on in/outputs in this specific running context ( on server side: input is send at once before script start, and out receiving also at once, agter script finished... so you cannot have real interractivity, as if you run it locally ^^ )
+ 3
What is a DOB?
What is the context? ( language? )
+ 3
Date Of Birth? :D
@Ayush Pandey: are you from the NSA, or another kind of secret agency?
Oh... I understand just now, that's a label for the user input ^^
+ 3
@Ayush Pandey wrote: << in PYTHON how do we do it? >>
^^
+ 2
Python it's:
dob = input('Please enter your DOB.')
+ 1
DOB is probably Date Of Birth.
How you display a message depends on what language you are writing in.
+ 1
@visph - i wish i was an agent:D . :o thats called label?
@edward -in python how do we do it?
0
visph is right, also the prompt string isn't processed here.
- 1
Html, use input tag with range attribute.
- 1
alert("Please enter your DOB!");
this alert function works in JavaScript and may suit your need