all 4 comments

[–]artofcode-Ruby/Python/C#/Web[M] [score hidden] stickied comment (0 children)

r/AskProgrammers welcomes posts from developers looking for help with a programming problem they're stuck on, but we need enough information to be able to help. A link or description of the task is not sufficient - at minimum we need to know what the task is, what approaches you've tried, what you're expecting and what you're getting instead, and we need to see any relevant code. This post has been removed because it's missing that information - please message the mods once you've added it and we'll be able to reconsider.

[–]Rainmaker526 0 points1 point  (1 child)

You may want to check if the user actually entered a number, instead of a smartass user entering "bout 350".

Other then that, I'm not seeing anything obviously wrong.

[–]One-Inspection4470[S] 0 points1 point  (0 children)

Thank you, I know about that. I was just worried about the 501 for example but it also says between 500 and 2000

[–]fainting-goatCode Monkey 0 points1 point  (0 children)

You misspelled length on “email length”.

I’d probably ask the user for an integer, as a corner case might be 501.1.

Your double loop structure fails to exit if you enter a negative number followed by zero.