|
drracketboy (November 30, 1999 at 12:00 am)
Backticks don't seem to be working in Python 3.
retrogamingcables (November 30, 1999 at 12:00 am)
num = `12` also converts the number to a string
MJSNOVOTNY (November 30, 1999 at 12:00 am)
nice biff dude
sdmac21 (November 30, 1999 at 12:00 am)
BACK TITS!
Henrikko123 (November 30, 1999 at 12:00 am)
back tits hehe
xRockDaFunkx (November 30, 1999 at 12:00 am)
Here's another way to join strings and integers:
num = 18
name = 'Bucky is %d' % (num)
print name
Bucky is 18
-Try it :).
% = "String formatting operator." It uses a, "String w/ formatting characters," + the data to be formatted, separated by the %. Since the letter 'd' is the, "Formatting characters for integers' we use "%d" in order to insert a integer into a string.
Hope I explained it alright, gl :)
munke2 (November 30, 1999 at 12:00 am)
OMG MOVE YOUR CUROSRRRRRRRRRRRR
b3nj4mmin (November 30, 1999 at 12:00 am)
back tits
thaappaya (November 30, 1999 at 12:00 am)
You would have to write at least 5 lines in java to get the same output, i dont know if that is good or bad
Bahfreakee (November 30, 1999 at 12:00 am)
here's a fun game: go from tutorial 1 to this one and watch the views decrease (dramatically)!! lol and it's only tutorial 7 |