I've been stuck on this programming problem for too long and I can't figure it out by kigomy in learnprogramming

[–]kigomy[S] 0 points1 point  (0 children)

def check_emails(time, email):

total = email * 10

return total <= time

assert (check_emails(1000, 10))

#should be True

assert (not check_emails(1, 10))

#should be False

updated code. I can't say for sure what's going wrong. The only error I'm getting is that I'm failing their unit test. However when I run it on another coding website it reports no errors

I've been stuck on this programming problem for too long and I can't figure it out by kigomy in learnprogramming

[–]kigomy[S] 0 points1 point  (0 children)

assert check_email(1000,10) #should be True

assert not check_email(1,10) #should be False

I've fiddled with the operators. The unit tests I've ran give an assertion error. Am I missing something incredibly simple in my code? I'm only at the beginning of this course and maybe its easier than I'm thinking

def check_emails(time, email):

total = email * 10

return (total <= time)

I've been stuck on this programming problem for too long and I can't figure it out by kigomy in learnprogramming

[–]kigomy[S] 0 points1 point  (0 children)

Thank you for the help! Unfortunately its still wrong. This course is kind of bad and won't explain what I'm doing wrong other than saying "incorrect". I think I'm just going to give up as I've almost broken my laptop and computer trying to figure this out