Introduction to Programming using Python

Slides:



Advertisements
Similar presentations
Susan Ibach | Microsoft Technical Evangelist Christopher Harrison | Microsoft Certified Trainer.
Advertisements

Creating a Program In today’s lesson we will look at: what programming is different types of programs how we create a program installing an IDE to get.
Jon Galloway | Technical Evangelist Christopher Harrison | Content Developer.
Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM.
Gerry O’Brien| Technical Content Development Manager Paul Pardi| Senior Content Publishing Manager.
Jon Galloway | Development Platform Evangelist Christopher Harrison | Microsoft Certified Trainer.
Microsoft Virtual Academy Stacey Mulcahy | Technical Evangelist Christopher Harrison | Content Developer.
Susan Ibach | Technical Evangelist Sage Franch | Microsoft Student Partner.
Tom Resing | SharePoint Engineer, Jive Software Christopher Harrison | Microsoft Certified Trainer.
Susan Ibach | Technical Evangelist Sage Franch | Microsoft Student Partner.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
JavaScript Part 1 Introduction to scripting The ‘alert’ function.
Porting your Unity Game to the Windows Store Jump Start
Development Environment
what is computer programming?
3D on the Web : Understanding the basics
JavaScript for Experienced Developers
A Playful Introduction to Programming by Jason R. Briggs
SharePoint 2013 Best Practices
Introduction to Tabular Data Models
Porting your Unity Game to the Windows Store Jump Start
Microsoft® Office FrontPage® 2003 Training
Web API Design Jeremy Likness | Principal Architect
Introduction to JSON with C#
Handling errors try except
Introduction to ASP.NET MVC Jump Start
Cloud Enable at APS.NET LOB App
Programming Robotic Systems using Visual Studio
Completing the tasks for A452 with….
Django in the Real World
Creating Windows Store Apps Using Visual Basic
Django in the real world
Join the MVA Community! Microsoft Virtual Academy—Free online training! Tailored for IT Pros and Developers Over 1M registered users Earn while you learn!
Introduction to AngularJS
Introduction to Programming with Python
Cloud-Enable a Windows Presentation Foundation LOB App
Displaying text print Susan Ibach | Technical Evangelist
Introduction to jQuery
Introduction to Programming using Python
Join the MVA Community! Microsoft Virtual Academy—Free online training! Tailored for IT Pros and Developers Over 2M registered users Earn while you learn!
Package Management and Workflow Automation
Remembering lists of values lists
Game Production Basics
Section 1 Introduction To Programming
Functions Christopher Harrison | Content Developer
A look at Python Programming Language 2018.
Introduction In today’s lesson we will look at: why Python?
A Lap Around Azure Websites Introduction
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Implementing Entity Framework with MVC Jump Start
Making decisions with code
ASP.NET Authentication with Identity Jump Start
Single Page Applications with jQuery or AngularJS
Developing Universal Windows Apps with HTML and JavaScript
1.3.7 High- and low-level languages and their translators
Gaming Engines for Windows 8
Quick Start Challenge: Universal Projects to Build a Game
Quick Start Challenge: Microsoft Advertising SDK
Lighting Up Real-time Web Communications with SignalR Introduction
Stacey Mulcahy| Technical Evangelist Jamie Kosoy | Content Developer
Getting Started with PowerShell Jump Start
Kaspersky Social Channel
05 | Testers’ Role in the DevOps World
What’s ASP.NET 5 and Why? Scott Hunter | Director of Program Management Scott Hanselman | Principal Program Manager.
Git Jump Start Steven Borg | Co-founder & Strategist, Northwest Cadence James Tupper| ALM Consultant, Northwest Cadence.
Getting Started with Microsoft Azure Machine Learning
Adding Style with CSS Helen Zeng | Developer Evangelist
Working with dates and times
Presentation transcript:

Introduction to Programming using Python Susan Ibach | Technical Evangelist Christopher Harrison | Content Developer

Meet Susan Ibach| ‏@hockeygeekgirl Technical Evangelist Helping developers understand Visual Studio, app building Microsoft Certified Trainer My first program was written in basic on a computer with 64K of memory Will not admit how many years coding experience Basic, Fortran, COBOL, VB, C#, HTML, Python Frequent blogger and presenter marathoner, wife, and mother of two awesome boys!

Meet Christopher Harrison | ‏@geektrainer Content Developer Focused on ASP.NET and Office 365 development Microsoft Certified Trainer Still misses his Commodore 64 Long time geek Regular presenter at TechEd Periodic blogger Certification advocate Marathoner, husband, father of one four legged child

Course Topics Introduction to Programming using Python - Day One 01 | Getting started 05 | Working with dates and times 02 | Displaying text 06 | Making decisions with code 03 | String variables 07 | Complex decisions with code 04 | Storing numbers

Course Topics Introduction to Programming using Python - Day Two 08 | Repeating events 12 | Reading from files 09 | Repeating events until done 13 | Functions 10 | Remembering lists 14 | Handling errors 11 | How to save information in files

Setting Expectations Target Audience If you want to follow along... People new to programming Students Career changers IT Pros Anyone with an interest in learning to code If you want to follow along... Install Visual Studio Express Install the Python tools Instructions coming soon...

Join the MVA Community! Microsoft Virtual Academy Free online learning tailored for IT Pros and Developers Over 2M registered users Up-to-date, relevant training on variety of Microsoft products “Earn while you learn!” Get 50 MVA Points for this event! Visit http://aka.ms/MVA-Voucher Enter this code: IntProgPython (expires 27 Oct 14)

Getting started Why and How Susan Ibach | Technical Evangelist Christopher Harrison | Content Developer

Why learn to code? Programming is a powerful tool you can use to solve all kinds of problems What do you want to do? Build a phone app to help you find directions Calculate how much money you need to buy a car See what people are saying about your business on social media Program a wearable device so it tweets you when you should re-apply sunscreen

Why Python? There are a LOT of different programming languages out there Python is one of the easier ones to learn There are lots of free tools out there you can use to code or learn Python There are a lot of different ways to use Python code

And as a bonus JavaScript ??? C# C++ Perl Once you learn how to code in one programming language it will be easier to learn another programming language, and another, and another… JavaScript ??? C# C++ Perl

Does anyone really use Python? Industrial Light and Magic uses Python to help with image processing and lighting special effects ForecastWatch.com uses Python to help with weather forecasts DevNet uses Python to aggregate news feeds A student in the England made a desktop dinosaur roar every time it was mentioned on twitter with Python and Raspberry Pi

But let’s be clear about something… You won’t learn enough in this course to start adding special effects to the next big superhero movie You WILL learn enough to start solving real world problems with code OR to just start having some fun 

So how do I get started?

You need to install software on your PC/laptop There are a lot of different tools out there you can use to write Python Code. In this course we will use Visual Studio + Python Tools for Visual Studio

The installation steps are explained at the Python Tools for Visual Studio website Install Visual Studio 2013 for desktop (free) Install Visual Studio 2013 Update 3 so you have the latest features Install Python Tools for Visual Studio Install the Python 3.4 interpreter

Geek Tip! There are actually a lot of different flavors of Python: IronPython, IPython, CPython, PyPy, Jython, Canopy, Anaconda, … We will be using the CPython interpreter with Python 3.4 So, if you copy code from a website and it doesn’t work don’t panic! It might just be a slightly different version of Python

How do I know I installed everything correctly? There is a tradition among programmers We always test our installation by writing the same program: Hello World!

Creating your Hello World program!

You have now created your first application print('Hello World')

Best practices

Pick up good habits right away! Comments in your code help you or someone else understand What your program does What a particular line or section of code does Why you chose to do something a particular way Anything that might be helpful to know if I am looking at the code later and trying to understand it!

In Python we use a # to indicate comments #My first Python Application #Created by me! #Print command displays a message on the screen print('Hello World') Did you notice the colors?

Visual Studio uses color coding to make your code easier to read You can change the colors if you want Go to Quick Launch, type Colors, select Options | Environment | Fonts and Colors Change it to whatever you want

Congratulations you are now a coder