<reponame>Nikita5150/astronomy-119-session-2
#include the Numpy library
import numpy as np

#define the main() function
def main(): 

	i = 0	#declare an integer i, set to 0
	x = 119.0	#declare a float x,with val 119
	
	for i in range(120):	#loops i from 0 through
		if ((i%2)==0):		#if i is even
			x += 3.0		#add 3 to x
		else:				#if i odd
			x -= 5.0		#x = x-5
			
	s = "%3.2e" % x			#make a string that shows x with scientific notation (e)
							#3 nbr zith .2 nbs apres decimal
							
	print (s)
	
#now the rest of the program
if __name__ == "__main__":
	main()
	
#continue
	
#include the Numpy library
import numpy as np

#define the main() function
def main(): 

	i = 0	#declare an integer i, set to 0
	x = 119.0	#declare a float x,with val 119
	
	for i in range(120):	#loops i from 0 through
		if ((i%2)==0):		#if i is even
			x += 3.0		#add 3 to x
		else:				#if i odd
			x -= 5.0		#x = x-5
			
	s = "%3.2e" % x			#make a string that shows x with scientific notation (e)
							#3 nbr zith .2 nbs apres decimal
							
	print (s)
	
#now the rest of the program
if __name__ == "__main__":
	main()
	
#continue
#include the Numpy library #define the main() function #declare an integer i, set to 0 #declare a float x,with val 119 #loops i from 0 through #if i is even #add 3 to x #if i odd #x = x-5 #make a string that shows x with scientific notation (e) #3 nbr zith .2 nbs apres decimal #now the rest of the program #continue