There are a large number of Python programming videos on YouTube.
YouTube itself is written using Python.
Edited by vegaseat
The first thing I would recommend in starting out with Python is finding a good Integrated Development Environment, oe IDE; while IDLE, the one that comes with Python, is passable, it is not really new-user friendly and takes a bit of getting used to. Unfortunately, 'good' is very subjective when it comes to IDEs, so you might find yourself trying a few before you come across the best fit. This thread and this one discuss the matter at length, without really giving a solid answer, for example. My personal choices are PyCharm (if you are willing to shell out for it) and Eric (which is free), but they might be a bit overwhelming to a novice. If you are planning to stick with Python 2 - not recommended, but many do - then Dr Python is excellent for novices. Still, you need to try a few out to get the one you are comfortbale with.
So why is the IDE so important, when all you really need is Notepad and an open shell window? Convenience, primarily. A good Python IDE will have both an editing window and an interpreter window in plain sight, making it easy to use the Python listener (the interactive interpreter) to test things in, while still having access to the program you are writing. Also, a good IDE makes it easier to work with more than one source module, when you get to that point in your programming, with 'package' or 'project' managers to keep things straight for you. Finally, a good IDE will have features for command line arguments and environment management. IDLE, while simple, falls down on all these things, and is clumsy to work with.
Regardless of the IDE you choose, I recommend starting off experimenting and getting familiar with the Python interactive interpreter before trying to write any scripts. Sit down with the listener open (either in a command shell like Windows PowerShell, or in your choice of IDE), and just play around with it. try some simple one-line expressions and see what they do. Keep in mind, though, that what you do in the interactive interpreter isn't saved, so when you feel like you want to write something permanent, go to your editor window and write it out there.
FInally, while videos are helpful, I recommend finding a good book to really learn the language well. IMAO, the best one right now is Think Python, an updated version of the classic How to Think Like a Computer Scientist. You can buy the print or Kindle version, but the whole book is also available online, as well. It is an excellent start, even though it does use some non-standard libraries, and goes step by step through the whole thing. An alternative would be Dive Into Python 3, which is also excellent but geared a bit more towards experienced programmers. A bit more challenging but in some ways more effective is Learn Python the Hard Way, while is free to try but you would need to buy it for the full course, which combined an online book with several videos if I am not mistaken. It also covers details not found in other books, like how to look up things with Google effectively and how to use the interactive interpreter from the shell.
Edited by Schol-R-LEA
I have written a formal Deadlock prevention code but I'm having trouble implementing this algorithm. Any help is appreciated.
I have represented the algorithm below,
Formal algorithm description
Data structures ...
from tkinter import* import tkinter import sqlite3 import sys conn = sqlite3.connect('REVISION CARD.db') c=conn.cursor() def load(): root=Tk() root.title("REVION CARDS") root.geometry("700x400+100+100") w1=Label(root, text="Question") w1.pack() e=Entry(root,width=40) e.pack() w2=Label(root,text="Answer") w2.pack() e1=Entry(root,width=40) e1.pack() toolbar=Frame(root) ...
I Currently working on a project to schedule installers to do installations.
When scheduling the user will select the day of intall and if the number of days the ...