0

Spacing between letters

does Python takes note of whitespace unlike c++ or ignores the space till the end of that line. For example- print( " hey ya ")

14th Oct 2017, 4:56 AM
porash kumar
porash kumar - avatar
4 Answers
+ 8
Whitespace is a valid character and is printed out, taken into account in string's length and so on.
14th Oct 2017, 5:18 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 4
No the spacing between print and ( doesn't matter, but the standard in Python is no space.
14th Oct 2017, 5:23 AM
ChaoticDawg
ChaoticDawg - avatar
+ 3
" hey ya " in either c++ or python is a string and all the whitespace between the quotes would be included with it.
14th Oct 2017, 5:17 AM
ChaoticDawg
ChaoticDawg - avatar
0
if not for strings then ?? like- print ("hello")
14th Oct 2017, 5:20 AM
porash kumar
porash kumar - avatar