Python Forum
Looping Input form / results
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looping Input form / results
#6
(Jan-16-2018, 09:39 PM)MikeAW2010 Wrote: That would work as well, what would need to be done?
With Ctrl-C to exit, the following (python 3) code suffices
if __name__ == '__main__':
    try:
        while True:
            oid = input('Input Object ID: ')
            print('Here is the data: {}{}{}'.format(oid, oid, oid))
    except KeyboardInterrupt:
        print()
Reply


Messages In This Thread
Looping Input form / results - by MikeAW2010 - Jan-16-2018, 06:50 AM
RE: Looping Input form / results - by gruntfutuk - Jan-16-2018, 11:36 AM
RE: Looping Input form / results - by MikeAW2010 - Jan-16-2018, 06:02 PM
RE: Looping Input form / results - by Gribouillis - Jan-16-2018, 06:07 PM
RE: Looping Input form / results - by MikeAW2010 - Jan-16-2018, 09:39 PM
RE: Looping Input form / results - by Gribouillis - Jan-16-2018, 10:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyscript index error while calling input from html form pyscript_dude 2 1,074 May-21-2023, 08:17 AM
Last Post: snippsat
  Form Results onto Page StewartLFI 3 110,792 Sep-18-2021, 05:00 AM
Last Post: ndc85430
  Search Results Web results Printing the number of days in a given month and year afefDXCTN 1 2,313 Aug-21-2020, 12:20 PM
Last Post: DeaD_EyE
  How to append one function1 results to function2 results SriRajesh 5 3,300 Jan-02-2020, 12:11 PM
Last Post: Killertjuh
  Trying to send input from html form to database SQLite3 RonnyGiezen 3 86,605 Dec-21-2019, 02:09 PM
Last Post: ibreeden
  Need Help with input from Web form amitjain78 3 2,102 Sep-03-2019, 10:13 AM
Last Post: snippsat
  How to keep looping until the user input is valid ? KyawMyo 12 6,434 Jun-10-2019, 02:51 AM
Last Post: KyawMyo
  [Help] Using "Class" with User Input in an online sign up form vanicci 8 6,811 Aug-29-2018, 10:52 AM
Last Post: vanicci

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020