Python program: name pattern -(220313)- Digital screenprint

paulramnora

London, United Kingdom

  • Available
    Products
    1
  • Artist
    Notes

Stationery

Artist's Description

DATE: Fri 22nd March 2013 22:36 PM GMT

MEDIUM: Digital printout/Windows 7 screenprint

DESCRIPTION: I went to…
http:///www.python.org
…to go downloaded the latest Python language release version 3.3 for FREE. Now, I’m trying my best to work out how to use it, most effectively. Fortunately, for me, I already went and brought myself a yearly online subscription to…
http://www.lynda.com
…so, the lesson I’m studying there is called: Python 3 Essential training…
http://www.lynda.com/Python-3-tutorials/essenti...


PYTHON PROGRAMMING LANGUAGE CODE

#define global variables…

#string…
#strName = “p-a-u-l”
strName = “paul”

#numeric: integers…
intMinNo = 1
intMaxNo = 10+1

#define function…

def funPrintPattern(intMaxNo):
for intEachName in range(intMinNo,intMaxNo):
print(strName, end=’’)
print()

#make function calls…

for intEachName in range(intMinNo,intMaxNo):
funPrintPattern(intEachName)

for intEachName in range(intMaxNo,intMinNo,-1):
funPrintPattern(intEachName)


DISCUSSING THE PYTHON NAME PATTERN PROGRAM

This program pretty much works the same as did Version I. The difference being Version I prints out a progressive series of numbers; while Version II prints out a fixed name patttern, instead.

If you read what I wrote explaining the Version I code; then, you should be able to understand what’s going on here, too; the link to Version I is here…

http://www.redbubble.com/people/paulramnora/wor...

,
desktop tablet-landscape content-width tablet-portrait workstream-4-across phone-landscape phone-portrait
desktop tablet-landscape content-width tablet-portrait workstream-4-across phone-landscape phone-portrait

10% off

for joining the Redbubble mailing list

Receive exclusive deals and awesome artist news and content right to your inbox. Free for your convenience.