#!/usr/bin/env python# -*- coding: utf-8 -*-goal=200# Target amountcurrent=1# Current amountmoves=0# Number of moveswhilecurrent<goal:# Check if doubling the current amount gets us closer to the goalifcurrent*2<=goal-current-1:current*=2else:current+=1moves+=1print("To reach $",goal,", you need",moves,"moves.")