Hi, I'm very new to programming and was wondering if I could get some help on this problem. I'm working through Kochan's 2.0 book, and am getting an error on problem 4-4, as shown in the image.
If I make x an integer, the program seems to run fine. But if I make it a float, it errors with "invalid operands to binary ^"
If I make x an integer, the program seems to run fine. But if I make it a float, it errors with "invalid operands to binary ^"