GithubHelp home page GithubHelp logo

linkedinlearning / learning-python-2896241 Goto Github PK

View Code? Open in Web Editor NEW
547.0 26.0 1.0K 20 KB

This repository is for the Linkedin Learning course: Learning Python

License: Other

Python 99.23% HTML 0.77%
python

learning-python-2896241's Introduction

Learning Python

This is the repository for the LinkedIn Learning course Learning Python. The full course is available from LinkedIn Learning.

Learning Python

Python—the popular and highly-readable object-oriented language—is both powerful and relatively easy to learn. Whether you're new to programming or an experienced developer, this course can help you get started with Python. Joe Marini provides an overview of the installation process, basic Python syntax, and an example of how to construct and run a simple Python program. Learn to work with dates and times, read and write files, and retrieve and parse HTML, JSON, and XML data from the web.

Installing

  1. To use these exercise files, you must have the following installed:
    • The latest version of Python, at least version 3.9 but preferably 3.10
    • A text editor such as Atom, Visual Studio Code, or another editor
  2. Clone this repository into your local machine using the terminal (Mac), CMD or PowerShell (Windows), or a GUI tool like SourceTree.
    • You can also just download a ZIP file from Github and extract the contents to your machine.
  3. Place the examples folder on your computer where they are easy to get to

Instructor

Joe Marini

Senior Director of Product and Engineering

Check out my other courses on LinkedIn Learning.

learning-python-2896241's People

Contributors

joemarini avatar smoser-lil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

learning-python-2896241's Issues

Ch2 - Basics classes_finish.py

Logically speaking, a motorcycle with a sidecar has 3 wheels. Can the code be updated to "3" on line 31. Additionally line 33 will have to equal 2 self.wheels.

[Version Incompatibility]: urllib.request.urlopen(urlData) cast exceptions on Python 3.11.4

Hello Joe,

I benefit a lot from your Python course on LinkedIn. Thank you so much for such great sharing. Today, I run into one minor problem with the JSONData chapter, namely with this file:

https://github.com/LinkedInLearning/learning-python-2896241/blob/main/Ch5%20-%20Internet%20Data/jsondata_finished.py

The code runs perfectly with Python 3.9.16, but I use Python 3.11.4 for the learning purpose, then I got an error from this method urllib.request.urlopen(urlData), the terminal says:

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)>

The error screenshot looks like this:

Screen Shot 2023-06-27 at 4 39 08 PM

I think this should be some kind of version incompatibility issue with Python. And after some investigation, I figure out this can be resolved with a ssl context as follows:

import urllib.request
import ssl

# ...some other code logic ...
urlData = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_hour.geojson"

context = ssl._create_unverified_context()
webUrl = urllib.request.urlopen(urlData, context=context)

print("result code:", str(webUrl.getcode()))
# ... some other code logic ...

Not sure if this is necessary to clarify in your demo code, I presume there will be more and more software developers using Python 3.11.4 above in the future who are going to take this course since it is so popular and practical, they would run into this problem as well.

Could you please help take a look this. Thank you!

Can you please upgrade this repo for Python 3.11?

Issue Overview

All the files are three years old. Three years is too long for a repo to be out of date.

Describe your environment

VS Code with Python 3.11

Steps to Reproduce

  1. Sign up for LinkedIn learning course in 2024
  2. See the link to Github repo examples
  3. Go to the repo
  4. Clone the repo

Expected Behavior

xpect to see latest Python 3.11 updates

Current Behavior

But only see Python 3.9 from three years ago

Possible Solution

Update the code to be 2024-compliant

Screenshots / Video

n/a

Related Issues

LinkedIn Learning course

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.