Transcription
Introduction toCoding in PythonFermilab - TARGET 2017Week 1
Low to High Level Programing LanguagesMachine code - computers hardwareunderstand binary numbersAssembly - 1 to 1 mapping tocomputer instructions(High level) Programming language simpler and more understandable,need to be translated for thecomputer
Compiler or Interpreter
Programming languageA programming (or coding) language is a setof syntax rules that define how code shouldbe written and formatted. PythonJavaScalaJavaScriptSQLSwiftC, C , C#FORTRAN
AlgorithmSelf-contained step-by- stepset of operations to beperformed to solve a specificproblem or a class ofproblems
Algorithm: Flowchart and Pseudocode
VariableVariables are used to storeinformation to be referenced andmanipulated in a computer programVariables have a name, value,representation, a type
(Complex) Data StructuresListStackArrayStackTreeHash Table (Map/Dictionary)TreeHash Table
Software - Global term for all the components (programs) distinct to hardwarethat tell a device what to do and how to behaveApplication - A type of software that does a certain task. Intended for aparticular platform or device. Often needs user interaction to functionProgram - (algorithm data structures) Sequence of instructions that complythe rules of a specific programming language, written to perform a specifiedtask with a computer
If you have an idea for an Application then Write down the algorithm to sketch out your ideasUse your own wordsThink about data structuresSelect a programming languageOnly then write the code (and remember to test it, deploy it, document itand use it!)
Why Python You Can Use Python for Pretty Much AnythingPython Is Beginner Friendly and can adapt to your stylePython Saves Time (batteries are included!)Python is a requested skill and pays wellIs the 2nd most popular programming language in the worldPython Is Widely Used in Data ScienceAll the Big Names use Python (major tech companies like YouTube, IBM,Yahoo, Dropbox, Quora, Mozilla, Instagram, and others) We use Python a lot at Fermilab
Let's code!
AcknowledgementsThank you to Jeny Teheran for letting me use some material from herTechSavvy presentationThanks to Pythonbytes, Indeeds, Dice, PYPL for news about Python popularity
Python is a requested skill and pays well Is the 2nd most popular programming language in the world Python Is Widely Used in Data Science All the Big Names use Python (major tech companies like YouTube, IBM, Yahoo, Dropbox, Quora, Mozilla, Instagram, and