0

How do i display a message for a user to input certain value? Say- please enter your DOB

14th May 2017, 5:00 AM
Ayush Pandey
Ayush Pandey - avatar
10 odpowiedzi
+ 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 ^^ )
14th May 2017, 5:35 AM
visph
visph - avatar
+ 3
What is a DOB? What is the context? ( language? )
14th May 2017, 5:08 AM
visph
visph - avatar
+ 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 ^^
14th May 2017, 5:24 AM
visph
visph - avatar
+ 3
@Ayush Pandey wrote: << in PYTHON how do we do it? >> ^^
14th May 2017, 6:57 AM
visph
visph - avatar
+ 2
Python it's: dob = input('Please enter your DOB.')
14th May 2017, 5:33 AM
Edward Furey
Edward Furey - avatar
+ 1
DOB is probably Date Of Birth. How you display a message depends on what language you are writing in.
14th May 2017, 5:21 AM
Edward Furey
Edward Furey - avatar
+ 1
@visph - i wish i was an agent:D . :o thats called label? @edward -in python how do we do it?
14th May 2017, 5:30 AM
Ayush Pandey
Ayush Pandey - avatar
0
visph is right, also the prompt string isn't processed here.
14th May 2017, 5:37 AM
Edward Furey
Edward Furey - avatar
- 1
Html, use input tag with range attribute.
14th May 2017, 6:04 AM
Calviղ
Calviղ - avatar
- 1
alert("Please enter your DOB!"); this alert function works in JavaScript and may suit your need
14th May 2017, 6:47 AM
abdullah shallal
abdullah shallal - avatar