Python Forum
Can I Limit Value used by python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I Limit Value used by python
#6
(Feb-09-2022, 03:53 PM)pajd Wrote: Its just the
1 print (f"{event['Value3']} is not a valid integer") doesn't return anything if I go over a value of 3

This will not be printed if you pass e.g. 100. It will be printed if you pass e.g. spam - that is not convertible to int
pajd likes this post
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Can I Limit Value used by python - by pajd - Feb-09-2022, 01:47 PM
RE: Can I Limit Value used by python - by buran - Feb-09-2022, 02:10 PM
RE: Can I Limit Value used by python - by pajd - Feb-09-2022, 02:50 PM
RE: Can I Limit Value used by python - by buran - Feb-09-2022, 03:37 PM
RE: Can I Limit Value used by python - by pajd - Feb-09-2022, 03:53 PM
RE: Can I Limit Value used by python - by buran - Feb-09-2022, 04:44 PM
RE: Can I Limit Value used by python - by pajd - Feb-09-2022, 07:04 PM
RE: Can I Limit Value used by python - by pajd - Feb-10-2022, 02:08 PM
RE: Can I Limit Value used by python - by buran - Feb-10-2022, 03:24 PM
RE: Can I Limit Value used by python - by pajd - Feb-10-2022, 09:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I make this Python script add a limit to trades made with API? streetlaw 0 2,067 Oct-12-2018, 11:41 AM
Last Post: streetlaw
  Python - Limit Sentence Length to 10 Words - Text file dj99 2 5,294 Jul-21-2018, 02:24 PM
Last Post: dj99
  Error in Python 3.6 and how to limit decimal places Raptor88 6 10,018 Mar-18-2017, 05:02 AM
Last Post: Raptor88

Forum Jump:

User Panel Messages

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