Logo

Programming-Idioms

History of Idiom 153 > diff from v7 to v8

Edit summary for version 8 by Roming22:
New Python implementation by user [Roming22]

Version 7

2017-04-27, 10:30:04

Version 8

2017-04-27, 17:56:43

Idiom #153 Concatenate string with integer

Create string t as the concatenation of string s and integer i.

Idiom #153 Concatenate string with integer

Create string t as the concatenation of string s and integer i.

Extra Keywords
int concat
Extra Keywords
int concat
Code
t = '{}{}'.format(s,i)
Doc URL
https://docs.python.org/2/library/string.html#format-string-syntax