Menu

EXAMPLEPython

0 Comment

Introduction to PythonSoftware for InstallationDownload Python 2.7.x (the most stable version) from the Official Python Download Websitehttp://www.python.org/downloads/**Don’t use any other higher version than 2.7.11****SEE examples below**    **NEED THE ASSIGNMENTS IT THIS WAY** Exercise 3.2Exercise 4.1**DON’T NEED IT THIS WAY / CAN’T BE COMPLETED THIS WAY**1. Code: def proc(x):  
return x + 2 def proc(n):  
return 2*n + 1 def main():  
x = proc(5) main() Screen: Duplicate signature “proc” Not a legal python program **again, if it’s not with-in the program and you can’t complete…please don’t bother or try**