print accepts various data types : Print « Language Basics « Python






print accepts various data types

print accepts various data types
 

letter = 'c'
print "give me a", letter, "..."           
answer = 42
print "the answer is:", answer             

           
         
  








Related examples in the same category

1.A trailing comma avoids the newline after the output:
2.print commandprint command