tecladocode / complete-python-course Goto Github PK
View Code? Open in Web Editor NEWA repository of code from my Complete Python Course on Udemy.
Home Page: complete-python-course.vercel.app
A repository of code from my Complete Python Course on Udemy.
Home Page: complete-python-course.vercel.app
quit current tab is not working it is showing error
Hello, I keep having this error when I try to read a txt file in my python file
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.
Steps to reproduce the bug:
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()
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.
[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...............
Dear all,
Is there a reason for all code examples from section 4 to be missing in your repository?
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.