Trying to figure out the data type from the code snippet

Chupo bad_n_mad at yahoo.com
Tue Jan 29 22:24:20 EST 2019


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.team, p.passing_att, p.passer_rating()

Results:

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

https://stackoverflow.com/q/28056171/1324175

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
http://tinyurl.com/customleddriver

Chupo



More information about the Python-list mailing list