Sololearn playground error /u/damned4lifevamp Python Education

Why is is that an answer that sololearn took as correct for a practice answer, doesn’t work in their code playground for python?

I’m just starting out and I don’t want to learn something half wrong and have them say it’s correct. Can someone please help me understand what’s happening here?

The code for “practice: cell growth”

take the initial cell population as input

cells = int(input())

take the number of days as input

days = int(input())

initialize the day counter

counter = 1

complete the while loop

while counter <= days : cells = cells * 2

# Daily message print(“Day ” + str(counter) + “: ” +str(cells)) counter = counter + 1

It tells me it’s correct in the lesson, but in the playground it kicks out “split multiple inputs into separate lines”

ValueError: invalid literal for int() with base 10:”

submitted by /u/damned4lifevamp
[link] [comments]

​r/learnpython Why is is that an answer that sololearn took as correct for a practice answer, doesn’t work in their code playground for python? I’m just starting out and I don’t want to learn something half wrong and have them say it’s correct. Can someone please help me understand what’s happening here? The code for “practice: cell growth” take the initial cell population as input cells = int(input()) take the number of days as input days = int(input()) initialize the day counter counter = 1 complete the while loop while counter <= days : cells = cells * 2 # Daily message print(“Day ” + str(counter) + “: ” +str(cells)) counter = counter + 1 It tells me it’s correct in the lesson, but in the playground it kicks out “split multiple inputs into separate lines” ValueError: invalid literal for int() with base 10:” submitted by /u/damned4lifevamp [link] [comments] 

Why is is that an answer that sololearn took as correct for a practice answer, doesn’t work in their code playground for python?

I’m just starting out and I don’t want to learn something half wrong and have them say it’s correct. Can someone please help me understand what’s happening here?

The code for “practice: cell growth”

take the initial cell population as input

cells = int(input())

take the number of days as input

days = int(input())

initialize the day counter

counter = 1

complete the while loop

while counter <= days : cells = cells * 2

# Daily message print(“Day ” + str(counter) + “: ” +str(cells)) counter = counter + 1

It tells me it’s correct in the lesson, but in the playground it kicks out “split multiple inputs into separate lines”

ValueError: invalid literal for int() with base 10:”

submitted by /u/damned4lifevamp
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *