Generation

generate functionTue, 25 Apr 2023

make a code to give the results of the powers of 2 n times using for

def power_of_two(n): result = 1 for i in range(n): result = result * 2 return result power_of_two(5)

Want to kickstart your project?Use the new AI Studio to create your code