Python Forum
How to allow user input only if certain requirements are met
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to allow user input only if certain requirements are met
#1
Im quite new to python. Sorry if I am too dumb.

I've been trying to build an agenda for a school, where classes can be scheduled only if other classes arent scheduled at that same time. What function should I attach to the variable, which in this case is the time?
Reply
#2
what have you tried?
Reply
#3
I have tried .find(), even though I am not sure what it does
Reply
#4
If you post the code you tried, we can give feedback on how to improve it.
Feel like you're not getting the answers you want? Checkout the help/rules for things like what to include/not include in a post, how to use code tags, how to ask smart questions, and more.

Pro-tip - there's an inverse correlation between the number of lines of code posted and my enthusiasm for helping with a question :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Loop back through loop based on user input, keeping previous changes loop made? hbkpancakes 2 136 Nov-21-2020, 02:35 AM
Last Post: hbkpancakes
  requirements file tdwinfre 7 204 Nov-06-2020, 06:01 AM
Last Post: tdwinfre
  user input for multi-dimentional list without a prior iteration using input() Parshaw 6 353 Sep-22-2020, 04:46 PM
Last Post: Parshaw
  How to time a user's input Tbot1000 2 278 Aug-31-2020, 09:39 PM
Last Post: Larz60+
  converting user input to float troubles RecklessTechGuy 3 397 Aug-17-2020, 12:41 PM
Last Post: deanhystad
  Validating user input WJSwan 2 360 Jul-06-2020, 07:21 AM
Last Post: menator01
  Hi, I need help with defining user's input and applying it to code. jlmorenoc 2 453 Jun-24-2020, 02:10 PM
Last Post: pyzyx3qwerty
  if the input is not number, let user input again teatea 14 968 Jun-02-2020, 07:03 PM
Last Post: ibutun
  Python - Most effective way to correct keyboard-user-input. ppel123 8 694 Apr-08-2020, 07:41 AM
Last Post: ppel123
  User input & Dictionary tfernandes 5 696 Apr-03-2020, 07:12 PM
Last Post: tfernandes

Forum Jump:

User Panel Messages

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