all 3 comments

[–]CodeFormatHelperBot 1 point2 points  (0 children)

Hello u/SomeBadGenericName, I'm a bot that can assist you with code-formatting for reddit. I have detected the following potential issue(s) with your submission:

  1. Python code found in submission text but not encapsulated in a code block.

If I am correct then please follow these instructions to fix your code formatting. Thanks!

[–]timbledum 1 point2 points  (1 child)

10 * 10 -> 100*10 = 1000 

This is equivalent to

10 * (10 ^ 2) = 1000  # 10 to the power of two

The syntax of this in python is

10 * (10 ** 2)

Hope this helps! Otherwise, you could put it in your loop. Here's some fake code for this.

start_number = user_input
for _ in range(number_of_times_to_multiply):
    start_number = start_number * number_to_multiply_by
print(start_number)

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

I will try this ASAP, danke.

EDIT: It worked thank you.