Stay N Tom

Showing a slice of what it means to be Thomas.

Pages

Wednesday, August 3, 2011

More than one name to a tag + MORE PROGRAMMING

If 5 + 3 = 8 in python then watch this.
First = 5
Second = 3
print First + Second
8
Now type in this.
YourTeacher = Mrs. Shock
(You have to have one word or this dosen't work)
MyTeacher = YourTeacher
YourTeacher
"Mrs. Shock"
MyTeacher
"Mrs. Shock"
Try this
MyTeacher = "Mrs. Kay"
print MyTeacher
Mrs. Kay
print YourTeacher
Mrs. Shock
Now were going to do is numbers and strings
First = '5'
Second = '3'
First + Second
'53'

3 comments: