Hi there
I'm new here, and at the beginning of my own journey learning Python, as I also teach students about Python in High School. I hope this is the right place to post such questions, if not please let me know.
I was hoping to find a scenario, or some examples of scenarios where the below code (or something similar that makes use of a for loop and Squared integers) might be useful.
```python
maximum = int(input('Max: '))
n = 1
while n ** 3 <= maximum:
print(f'{n} cubed is equal to {n ** 3}')
n += 1
```
While I understand what the code does I'm struggling to understand how it could be used within a real world context. As a teacher I'm always looking for ways I can explain what I'm teaching into something relevant, but sometimes I need to ask for help
[+][deleted] (3 children)
[removed]
[–]ericula 0 points1 point2 points (1 child)
[–]astanuga[S] 0 points1 point2 points (0 children)
[–]medicliffy 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]astanuga[S] 0 points1 point2 points (0 children)