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
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?
what have you tried?
I have tried .find(), even though I am not sure what it does
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 :)

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to access the user input value given to daterangepicker klllmmm 1 498 May-26-2021, 09:16 PM
Last Post: nilamo
  Problem restricting user input in my rock paper scissors game ashergreen 6 909 Mar-25-2021, 03:54 AM
Last Post: deanhystad
  LinkedList by User Input SantiagoPB 5 983 Mar-03-2021, 09:54 PM
Last Post: deanhystad
  User input/picking from a list AnunnakiKungFu 2 559 Feb-27-2021, 12:10 AM
Last Post: BashBedlam
  Generate Random operator, take user input and validate the user mapypy 4 619 Feb-03-2021, 08:41 PM
Last Post: nilamo
  Examples of Customer requirements ComputerAstronaut 1 491 Dec-08-2020, 03:22 AM
Last Post: Larz60+
  Loop back through loop based on user input, keeping previous changes loop made? hbkpancakes 2 929 Nov-21-2020, 02:35 AM
Last Post: hbkpancakes
  requirements file tdwinfre 7 756 Nov-06-2020, 06:01 AM
Last Post: tdwinfre
  user input for multi-dimentional list without a prior iteration using input() Parshaw 6 865 Sep-22-2020, 04:46 PM
Last Post: Parshaw
  How to time a user's input Tbot1000 2 908 Aug-31-2020, 09:39 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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