Jump to content

Boston Python Workshop 3/Friday/Tutorial: Difference between revisions

imported>Jesstess
imported>Jesstess
Line 291:
</pre>
 
Python is actually turning the integer 1 into a string before printing, and that's why thethat concatenation works: Python does know how to concatenate two strings.
 
We can convert an integer into a string ourselves, using the <code>str</code> function:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.