![:octocat: :octocat:](https://github.githubassets.com/images/icons/emoji/octocat.png)
- https://www.youtube.com/channel/UCe1gZh7Pa8KtIBudbqkMfdA
- https://www.youtube.com/@Compuscience-Python-Prog-Exps/community
- https://youtube.com/playlist?list=PL-Jc1Yxezi_QFx7KmT-BeDoFnlH-bdUkF&si=VxZCQjs5m2knoxmA
- https://youtube.com/playlist?list=PL-Jc1Yxezi_To307LogWqMwn3KGNBMGPG&si=FfpCW94CJpACQUZ7
- https://youtube.com/playlist?list=PL-Jc1Yxezi_ShdaaEPE3mSawOt79ewUPZ&si=0nTIng9vsqfXSFME
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
# These are just Tkinter experiments, I've been learning and still am learning. | |
# I don't explain how to understand Tkinter, which is why it's called Tk Teacherless School. | |
# Created by Joseph C. Richardson, GitHub.com | |
# Tkinter Borders | |
'flat' | |
'solid' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
My TKINTER CLOCK Python Program Example: | |
Created by Joseph C. Richardson, GitHub.com | |
''' | |
import tkinter as tk | |
import time as tm | |
window=tk.Tk() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Welcome to tkinter, the canvas part of Python. With tkinter you can draw | |
lines and shapes such as ovals, arcs and rectangles. You can also create | |
some wild digital string-art designs with for-loops. With tkinter you can | |
also create buttons and input boxes. We will get into all this and more about | |
tkinter, the fun part of Python programming. | |
''' | |
# Created by Joseph C. Richardson, GitHub.com | |
# Let's create a simple tkinter window. Type and execute/run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Have some fun with this little tkinter laser wars Python program example: | |
''' | |
# Created by Joseph C. Richardson, GitHub.com | |
from tkinter import* | |
from random import* | |
import time | |
my_window=Tk() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Raise a list of possible errors to test in Python programs. | |
# Created by Joseph C. Richardson, GitHub.com | |
try: | |
print('Raising a list of possible errors to test:') | |
raise Exception | |
raise ValueError | |
raise TypeError | |
raise NameError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created by Joseph C. Richardson, GitHub.com | |
# Here is a basic, skeletal structure of a Try: and Except: block. | |
# The 'Pass' statement ignores any empty code blocks, which are | |
# not used for now. In this case, only the skeletal structure of the | |
# program is clearly shown. Note: you do not need to invoke the | |
# 'finally' statement into try: and Except: blocks, but they can be | |
# quite handy when you want to show any output on the screen, | |
# no matter the outcome of the program's execution/run. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
This is a complete scope of all the Try and Except Eorror handlers. | |
''' | |
# Created by Joseph C. Richardson, GitHub.com | |
except Exception: | |
except BaseException: | |
except ArithmeticError: | |
except BufferError: | |
except LookupError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created by Joseph C. Richardson, GitHub.com | |
# Let's hurt our brain just a wee bit and create a class inheritance | |
# with two functions inside it. First, we will start off with creating | |
# two functions called student1 and student2. Next we will create | |
# two, separate classes called Student1 and Student2 and place | |
# our two functions inside them. After that, we will create our class | |
# inheritance called Students with our two classes inside it. Note: | |
# to be sure that each programming step works, type and execute/ | |
# run each program example first, before you proceed to the next |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Almost six years later, and I'm still learning how | |
# to master Python. I'm always trying new ideas through | |
# others so I can learn what Python is truly all about. | |
# Created by Joseph C. Richardson, GitHub.com | |
# Use the enumerate() function to loop through a list, using | |
# only two lines of code; one for the for-index enumerate() | |
# function and the other for the 'print' statement. |
NewerOlder