GithubHelp home page GithubHelp logo

tecladocode / complete-python-course Goto Github PK

View Code? Open in Web Editor NEW
323.0 323.0 556.0 11.86 MB

A repository of code from my Complete Python Course on Udemy.

Home Page: complete-python-course.vercel.app

Python 88.77% HTML 2.54% Jinja 2.57% JavaScript 4.78% CSS 1.35%

complete-python-course's People

Contributors

dependabot[bot] avatar itsnachiket avatar jslvtr avatar lukamilivojevic avatar lus24 avatar miron avatar pjb518 avatar thegreatdaneno1 avatar vladdg-dev 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

complete-python-course's Issues

code.py clashes with PyCharms Debug mode.

When debugging the lecture files named code.py, PyCharms debugger crashes because it uses a code module itself:

Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm 2022.1.1\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_console_integration.py", line 4, in <module>
    from code import InteractiveConsole, InteractiveInterpreter
ImportError: cannot import name 'InteractiveConsole' from 'code' (C:\Users\Mir\complete-python-course\course_contents\10_advanced_python\lectures\16_higher_order_functions\code.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm 2022.1.1\plugins\python\helpers\pydev\pydevd.py", line 45, in <module>
    from _pydevd_bundle.pydevd_comm import CMD_SET_BREAK, CMD_SET_NEXT_STATEMENT, CMD_STEP_INTO, CMD_STEP_OVER, \
  File "C:\Program Files\JetBrains\PyCharm 2022.1.1\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 91, in <module>
    from _pydevd_bundle import pydevd_console_integration
  File "C:\Program Files\JetBrains\PyCharm 2022.1.1\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_console_integration.py", line 6, in <module>
    from _pydevd_bundle.pydevconsole_code_for_ironpython import IronPythonInteractiveConsole as InteractiveConsole, \
  File "C:\Program Files\JetBrains\PyCharm 2022.1.1\plugins\python\helpers\pydev\_pydevd_bundle\pydevconsole_code_for_ironpython.py", line 305
    exec code in self.locals
    ^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'exec'. Did you mean exec(...)?

Solution: Rename all code.py files to something else.

Bug on Tkinter app project where if there's only 1 unsaved tab, it doesn't close properly

Steps to reproduce the bug:

  1. Open the finished Tkinter app.
  2. Write something in the first (and only) tab.
  3. Close the tab with ctrl+q.
  4. Confirm that you wish to delete unsaved changes.
  5. Nothing happens.

What should happen?

The tab with changes is deleted. Since it's the only tab in the application and we need at least 1 to function properly, a new tab should automatically open.

This is because of this code:

    if len(notebook.tabs()) == 1:
        create_file()

Json file will be replaced at each start

Milestone Project 2 with JSON
File is: complete-python-course/section7/milestone_2_json/utils/database.py
If you create an empty database (file in write mode) the old database gets replaced every time you start the app. You should check if file exists or manage the error when trying to load an empty json file, creating here the empty list in the file.

The invalid value entered for the menu , makes it an infinite loop

[https://github.com/tecladocode/complete-python-course/blob/master/section3/milestone_1/app.py]
Once you start the program, the program asks for user input.
The invalid input is not handled correctly.

Enter 'a' to add a movie, 'l' to see your movies, 'f' to find a movie, and 'q' to quit: <enter anything apart from a,I,f,q>

and then see the infinite loop

Unknown command-please try again.
Unknown command-please try again.
Unknown command-please try again.
Unknown command-please try again.
Unknown command-please try again...............

Section 4 is missing

Dear all,

Is there a reason for all code examples from section 4 to be missing in your repository?

Regards

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.