0

How to print some words in Python? Answer is in the description of this.

Answer: print ('some words') Or: a = 'some words' print (a)

20th Aug 2019, 7:23 PM
Marina Vlahović
Marina Vlahović - avatar
1 Answer
+ 3
both work just fine the difference is mainly in how you want to write your code. if it is really short code you can use print(‘some words’) perfectly fine if I write bigger code I tend to write a= this way you can simply change some variables (such as a here) and it is changed throughout the code.
20th Aug 2019, 7:29 PM
Brave Tea
Brave Tea - avatar