This forum is now read-only. Please use our new forums! Go to forums
Looping with 'For': Numbers 1 to 50 not inclusive
I cannot get past the the Looping with ‘For’. It keeps saying Oops, try again. It looks like you didn’t print out the numbers 1 to 50, inclusive. even though it is printing 1 through 50.
This is my code:
for num in 1..50
print num
end
Does anyone know why it won’t pass?
Answer 55a20a7e76b8fe2a3f0007fe
2 votes
Okey. I found a solution. You need delete all until and while loops in your code and then submit only that for loop..
Answer 55a20874e39efeed9f00039b
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
ahh that’s great, thank you :)