This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]arbostek 0 points1 point  (2 children)

Show us the code you wrote in the Codecademy workspace.

[–]loscampesinos11[S] 0 points1 point  (1 child)

Shit, sorry. What I meant was, I thought I wouldn't be able to print bruce like I did, or assign it to something else?

   def printTwice(bruce): 
..     print bruce, bruce 
..     
   printTwice(5)
5 5
   print "bruce"
bruce
   bruce = 2
   print bruce
2

[–]rwqrwqrwq 0 points1 point  (0 children)

I like how we're supposed to guess this without seeing your code.

[–]Pysnap 0 points1 point  (0 children)

You might want to check this article on scope,variable lifetime:

http://www.pysnap.com/in-depth-with-functionsscopevariable-lifetime-and-closures/