Python Forum

Full Version: New programmer using GROK
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
cats = int(input("Estimated total cats: "))
total = int(input("How many cats already glowing? "))
if cats > total:
  print("Not all the cats are glowing.")
else:
  print("All the cats are glowing.")
cats = int(input("Estimated total cats: "))
total = int(input("How many cats already glowing? "))
if cats <= total:
  print("All the cats are glowing.")
Error:
Error:Testing the first example in the question. Your submission attempted to read too much input! This occurred on line 7 of your submission.

Output:
Grok Disease Epidemic! (Python) The curious case of the glowing nose These are the (2) Problems that it is asking me to find the solution for: 1)Estimated total cats: 2500 How many cats already glowing? 200 Not all the cats are glowing. 2)Estimated total cats: 100 How many cats already glowing? 100 All the cats are glowing.
I spent quite some time please help guys !!!!!! Idea Idea Idea Idea
I think you just need to delete the last four lines. It seems to run your code once for each test, not once for all tests.
Big Grin Big Grin Big Grin Big Grin Big Grin You're Amazing, I was trying to figure it out for hours! ! thank you so much for the time to reply !!!