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)
1 Respuesta
+ 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.