« POPE 5 Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next

Re: Python Programming

By: Decomposed in POPE 5 | Recommend this post (0)
Sat, 16 May 20 7:52 AM | 77 view(s)
Boardmark this board | Pope 5
Msg. 61900 of 62138
(This msg. is a reply to 61859 by Zimbler0)

Jump:
Jump to board:
Jump to msg. #

Zimbler0: I expect you already have the books you need, but here's a free .pdf of the Python book being used in UVA's introductory programming class:
http://www.spronck.net/pythonbook/pythonbook.pdf




Avatar

Gold is $1,581/oz today. When it hits $2,000, it will be up 26.5%. Let's see how long that takes. - De 3/11/2013 - ANSWER: 7 Years, 5 Months


- - - - -
View Replies (1) »



» You can also:
- - - - -
The above is a reply to the following message:
Re: Python Programming
By: Zimbler0
in POPE 5
Sat, 16 May 20 2:18 AM
Msg. 61859 of 62138

Decomposed > The language reminds me a lot of BASIC.


It does me too. But there are differences in the syntax.
When you get to lists, tuples, and dictionaries . . .
Then some of the power available starts to become clear.

And then one can import functions from other places. Like
math, and tkinter. One can also import functions one has
written and put in other files.

from tkinter import *
quadrum = Tk()
quadrum.geometry("600x800+100+100") # Make the Window on the screen.
#
zx=300 # X ordinate of origin
zy=300 # y ordinate of origin
sczl=50 # default scale value for numbering and drawing
#
# Functions to draw things
#
from drawfun_g import drawaxis, drawpoint, drawgraph # Import the three functions.
from drawfun_g import addlabels # Places non-changing labels
#

'from tkinter import * ' is where I bring tkinters functions and make them
available inside my program. 'from drawfun_g' is where I import those
three functions for drawing the coordinate axis etc. etc.

There are also lots of function blocks available for python.

And I'm just dabbling in it.

Zim.


« POPE 5 Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next