Skip to content
logologologo
  • HOME
  • WHAT WE DO
  • SOLUTIONS
    • Marketing & Advertising
      • ARTIFICIAL INTELLIGENCE (AI)
      • SEARCH ENGINE OPTIMIZATION
      • SOCIAL MEDIA MARKETING
      • PAY-PER-CLICK ADVERTISING
      • LOCAL BUSINESS MARKETING
      • MARKETING AUTOMATION
      • LEAD GENERATION
      • EMAIL MARKETING
    • Design & Production
      • WEBSITE DESIGN
      • GRAPHIC DESIGN
      • MOTION GRAPHICS & VIDEO POST
      • CORPORATE IDENTITY PACKAGE
    • Business Solutions
      • MANAGED HOSTING SERVICES
      • PRINTING SOLUTIONS
      • IT SOLUTIONS: Security, Business, Continuity, and Help Desk
  • Our Work
  • Adweblog
  • Retainer
  • Contacts
  • AdwebDeals
  • HOME
  • WHAT WE DO
  • SOLUTIONS
    • Marketing & Advertising
      • ARTIFICIAL INTELLIGENCE (AI)
      • SEARCH ENGINE OPTIMIZATION
      • SOCIAL MEDIA MARKETING
      • PAY-PER-CLICK ADVERTISING
      • LOCAL BUSINESS MARKETING
      • MARKETING AUTOMATION
      • LEAD GENERATION
      • EMAIL MARKETING
    • Design & Production
      • WEBSITE DESIGN
      • GRAPHIC DESIGN
      • MOTION GRAPHICS & VIDEO POST
      • CORPORATE IDENTITY PACKAGE
    • Business Solutions
      • MANAGED HOSTING SERVICES
      • PRINTING SOLUTIONS
      • IT SOLUTIONS: Security, Business, Continuity, and Help Desk
  • Our Work
  • Adweblog
  • Retainer
  • Contacts
  • AdwebDeals
  • HOME
  • WHAT WE DO
  • SOLUTIONS
    • Marketing & Advertising
      • ARTIFICIAL INTELLIGENCE (AI)
      • SEARCH ENGINE OPTIMIZATION
      • SOCIAL MEDIA MARKETING
      • PAY-PER-CLICK ADVERTISING
      • LOCAL BUSINESS MARKETING
      • MARKETING AUTOMATION
      • LEAD GENERATION
      • EMAIL MARKETING
    • Design & Production
      • WEBSITE DESIGN
      • GRAPHIC DESIGN
      • MOTION GRAPHICS & VIDEO POST
      • CORPORATE IDENTITY PACKAGE
    • Business Solutions
      • MANAGED HOSTING SERVICES
      • PRINTING SOLUTIONS
      • IT SOLUTIONS: Security, Business, Continuity, and Help Desk
  • Our Work
  • Adweblog
  • Retainer
  • Contacts
  • AdwebDeals
Uncategorized
adweb.admin
0
0
January 8, 2012

Python Lesson 1

So…here we are…back again. This time we are going to run through the first lesson in the new material and see what we can break…sound like fun?

In this first lesson we are asked to open up our Gedit notepad and type in a series of print statements, save the file in the *.py* format (which is the python extension). Then from our terminal we are to run the program. 

At first I ran all of these commands using Python but then it dawned on me that the tutorial was wanting me to type the print commands into the notepad, save the file and then run it from my terminal.

[note] Pay Attention Nick! [/note]

So that is what I did…well except for the pay attention part…which we will see next.

What I failed to do is type it correctly. You will notice on line (3) I capitalized the word print and when I opened up the Terminal and ran the program I immediately got a Syntax Error on line (3)

[note][/note]

Imagine my surprise! I immediately went back in and made the correction using my amazing powers of deduction. If you will remember from our last blog one of the three things this book is going to teach us is how to notice differences. I spotted it immediately with the help of Terminal which announced my mistake.

[note] At this level of the game mistakes stick out like a cold sore covered in Caramex[/note]

After making the changes and saving the file…I was able to run the program with success!

[note] Before ran the program I saved the file I wrote in the notepad to a temp folder and used my terminal to open the directory before running the program 

>> cd temp
>> python ex1.py[/note] 

As I read on the author, Zed, points out an error. Interestingly enough the error that he displays was on the same line that I found my error (line 3). The specific error was different (mine was a capital “P” where his error was due to the failure to use an end quote).

[quote][/quote]

The point here is that if you make a mistake your terminal will prompt you of your error and the line in which the error is found.

And well…that ends this first exercise! Yay Me!

The extra credit part of this lesson involved going back into the code in the notepad and adding a # symbol to one of the lines of code. I did that and saved it and then ran the program. Apparently this symbol (which they call an octothorpe – I call it  a pound or a hash tag) is used to comment out a line of code. When I ran the code the line I chose did not show up in the final program.

Well…this ends our lesson on programming Python for today. I will probably come back later tonight and finish the next lesson with you.

 

 

Share

Post navigation

Prev
Next

Related Posts

Uncategorized

The Early Worm Gets Eaten By the Bird – PPC Campaign Tips from Adwebvertising

Pay Per Click PPC Campaign Tips from Adwebvertising I chuckled when I first heard someone say,...
adweb.admin
0
2
Uncategorized

Free File For April

This month we are offering a free “Different Website Template” for you to download....
adweb.admin
0
0

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • December 2024
  • November 2024
  • March 2024
  • February 2024
  • October 2023
  • September 2023
  • August 2023
  • May 2023
  • April 2023
  • December 2022
  • November 2022
  • August 2022
  • July 2022
  • June 2022
  • June 2020
  • August 2019
  • February 2018
  • December 2017
  • November 2017
  • March 2017
  • January 2017
  • October 2016
  • September 2016
  • August 2016
  • March 2016
  • February 2016
  • October 2015
  • June 2015
  • February 2015
  • January 2015
  • September 2014
  • April 2014
  • January 2014
  • November 2013
  • September 2013
  • July 2013
  • June 2013
  • November 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • October 2011

Categories

  • Advanced SEO Techniques
  • Artificial Intelligence
  • Brand development
  • Business advice
  • Case Studies
  • Creative
  • Design
  • Development
  • Helpdesk
  • Helpful Sales & Marketing
  • IOS
  • Life
  • Marketing
  • News
  • Online marketing
  • Print Proofs
  • Python
  • Security
  • SEO
  • Services
  • Small Business Resources
  • Social Networking
  • Training
  • UI/UX
  • Uncategorized
  • Updates
  • Web Design
  • Web Design Houston
  • Website Design Friendswood
  • Website Design Katy Texas
  • Website Design Pearland TX
  • Website Hosting
  • WordPress

I’m a professional web blogger and photographer. I run my blog for seven years. I am skilled at making complex ideas and concepts simple and easy to understand for readers.

FacebookTwitterGoogle

Categories

  • Advanced SEO Techniques (5)
  • Artificial Intelligence (2)
  • Brand development (2)
  • Business advice (10)
  • Case Studies (5)
  • Creative (3)
  • Design (2)
  • Development (1)
  • Helpdesk (5)
  • Helpful Sales & Marketing (22)
  • IOS (2)
  • Life (2)
  • Marketing (4)
  • News (4)
  • Online marketing (5)
  • Print Proofs (2)
  • Python (8)
  • Security (3)
  • SEO (11)
  • Services (2)
  • Small Business Resources (1)
  • Social Networking (1)
  • Training (12)
  • UI/UX (2)
  • Uncategorized (33)
  • Updates (2)
  • Web Design (1)
  • Web Design Houston (4)
  • Website Design Friendswood (4)
  • Website Design Katy Texas (1)
  • Website Design Pearland TX (2)
  • Website Hosting (1)
  • WordPress (1)

Tags

Adwebvertising Houston Texas algorithms anchor text Article back-links branding Building Content content Content Development Houston Texas Content Development Pearland corporate messaging Creative credibility Dancing With Penguins emphasis evolution flat Get on top of search engines Google Algorithm Google Dance Google Penguin Update graphic design Hire a webmaster keywords linking strategy links loyalty Module New York persuasion search directory Search Engine Optimization Houston seo strategy text traffic web development Friendsowo Web Development Pearland Web Services Website Designer Houston Texas Website Design Friendswood Website Design Houston Texas Website Design Pearland Website Development Houston Texas Websites Pearland Wordpress 4.7.3 Security Release
January 2012
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
« Dec   Feb »

Instagram

This error message is only visible to WordPress admins

Error: No feed found.

Please go to the Instagram Feed settings page to create a feed.

Content Collection Form    |    Needs Assessment

Copyright © Adwebvertising 2023. Another Brilliant Design by Adwebvertising.