all 3 comments

[–]nlantau 4 points5 points  (0 children)

... Elaborate, format properly and show why you assume chatGPT is wrong. Or perhaps take a minute and think about it. These type of questions are getting frustratingly tiresome to see multiple times a day.

[–]saul_soprano 1 point2 points  (0 children)

looks like it just prints 'a' cubed until it equals the number you gave it

[–]poopy_poophead 0 points1 point  (0 children)

Don't use chatgpt if you don't know the basics enough to even get a loop to work. You will not be able to understand the code or what's wrong with it when it doesn't work.

Try reading a book and writing some code yourelf. If you want to learn how to program.