Question: 1. Use a python programming environment. Explore the right programming environment for your operation system. (E.g. you can use replit, my repls, and create a


1. Use a python programming environment. Explore the right programming environment for your operation system. (E.g. you can use replit, "my repls", and create a project there, once you finish all the coding and testing, save it as Lab4.py) Create a new python file named "Lab4.py" Copy the following code to the editor, and use it as your base for new program. 2. import sys # Define a main0 function that prints a little greeting. def main0 # Get the name from the command line, using world, as a fallback. if len sys.argv) 2: name - sys.argv[1] else: name World print ("Hello", name) This is the standard boilerplate that calls the main0 function. it-name = main-: main0 3. Save and run it, make sure it works good 4. Define another function named filb (a) to print Fibonacci series up to n. Add the following code to above program. a,b=0,1 while b en: print(b, end a,b=b,a-b 5. Replace the following code name = sys. arer,'[1] oe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
