Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New programmer using GROK
#1
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
Reply
#2
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.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#3
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 !!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  New Programmer / Program ericvrocha 5 2,806 Oct-07-2019, 09:25 PM
Last Post: ericvrocha
  GROK MODULE 5 HELP! AmineLS 1 8,512 Sep-26-2019, 04:21 PM
Last Post: metulburr
  General Grok Help AmineLS 5 5,095 Sep-11-2019, 06:08 PM
Last Post: SheeppOSU
  New Programmer/Need assistance with if statements KayPyth 4 3,116 May-23-2018, 10:25 PM
Last Post: KayPyth

Forum Jump:

User Panel Messages

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