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
#5
By errors I mean the output that the value I entered wasnt correct
I get this in my CloudWatch logs

Value must be between 1 and 3


No mention of this output if I try a value larger than what is allowed

print (f"{event['Value3']} is not a valid integer")

The code works though as I cant change the ASG to more than is allowed (in this case 3).

Its just the
print (f"{event['Value3']} is not a valid integer")
doesn't return anything if I go over a value of 3
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,293 Jul-21-2018, 02:24 PM
Last Post: dj99
  Error in Python 3.6 and how to limit decimal places Raptor88 6 10,017 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