[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to figure out the data type from the code snippet

I am trying to figure out what data type is assigned to variable p in 
this code snippet:

for p in game.players.passing():
    print p,, p.passing_att, p.passer_rating()


R.Wilson SEA 29 55.7
J.Ryan SEA 1 158.3
A.Rodgers GB 34 55.8

If p is a string ('print p' prints names of the players) then how is 
possible to access p.something?

If p is an object, then how can p return a string?
Let There Be Light
Custom LED driveri prema specifikacijama