lfc = "Liverpool" # this is a string manc = "Manchester City" l_score = 3 # this is a integer m_score = 0 print "Result",lfc,l_score,"-",m_score,manc Result Liverpool 1 - 0 Manchester City
How to know the type of variables:
type(lfc) <type 'str'=""> type(l_score) <type 'int'="">
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.