If you’re using Python 3, or appropriate Python 2.x version with from __future__ import print_function
then:
data = [7, 7, 7, 7]
print(*data, sep='')
Otherwise, you’ll need to convert to string and print:
print ''.join(map(str, data))
More Related Contents:
- Oops, try again. Your function failed on the message yes. It returned 'yes' when it should have returned 'Shutting down'
- How to match a string to pattern “Foo-Bar”, where Bar can be any element of a list? [closed]
- Searching for IP addresses in a file
- Swapping variable places inside if throws an error
- Can you make that thats code run in python 2.7 from 3.5 [closed]
- Behavior of exec function in Python 2 and Python 3
- Could not find a version that satisfies the requirement tensorflow
- How to extract text from an existing docx file using python-docx
- Getting only element from a single-element list in Python?
- Why does this not work as an array membership test? [duplicate]
- Using multiple Python engines (32Bit/64bit and 2.7/3.5)
- How can I convert 24 hour time to 12 hour time?
- importing izip from itertools module gives NameError in Python 3.x
- rounding errors in Python floor division
- Search for a value in a nested dictionary python
- How to Install and Use TkDnD with Python Tkinter on OSX?
- ImportError on python 3, worked fine on python 2.7
- How to get Windows short file name in python?
- How does a for loop evaluate its argument
- What does the “yield” keyword do in Python?
- How to use collections.abc from both Python 3.8+ and Python 2.7
- Switch between python 2.7 and python 3.5 on Mac OS X
- Sound generation / synthesis with python?
- What are the differences between bool() and operator.truth()?
- Type error Unhashable type:set
- Loading text file containing both float and string using numpy.loadtxt
- What is absolute import in python?
- Run process with realtime output to a Tkinter GUI
- What does the slice() function do in Python?
- Skip elements on a condition based in a list comprehension in python