Cast both to a string, concatenate the strings and then cast the result back to an integer:
z = int(str(x) + str(y))
More Related Contents:
- How do I concatenate two lists in Python?
- Pandas Merging 101
- How do I concatenate items in a list to a single string?
- Import multiple csv files into pandas and concatenate into one DataFrame
- How can I concatenate str and int objects?
- Why does concatenation of DataFrames get exponentially slower?
- How do I concatenate text files in Python?
- Which is the preferred way to concatenate a string in Python?
- Python strings and integer concatenation [duplicate]
- In Python, what is the difference between “.append()” and “+= []”?
- Concatenating two one-dimensional NumPy arrays
- Cannot concatenate ‘str’ and ‘float’ objects?
- how to merge 200 csv files in Python
- Import multiple excel files into python pandas and concatenate them into one dataframe
- How can strings be concatenated?
- Concatenate two NumPy arrays vertically
- pandas concat generates nan values
- Concatenating two range function results
- How to concatenate two dictionaries to create a new one? [duplicate]
- Most Pythonic way to concatenate strings
- How to concatenate (join) items in a list to a single string
- How can I merge 200 CSV files in Python?
- Ellipsis lists […] and concatenating a list to itself [duplicate]
- Concatenating string and integer in Python
- Pandas concat yields ValueError: Plan shapes are not aligned
- Concatenation of many lists in Python [duplicate]
- Concatenating column vectors using numpy arrays
- Concatenate elements of a tuple in a list in python [duplicate]
- How to convert DataFrame.append() to pandas.concat()?
- How can I get the concatenation of two lists in Python without modifying either one? [duplicate]