Skip to content

Instantly share code, notes, and snippets.

@felixmon
Last active August 28, 2020 06:05
Show Gist options
  • Save felixmon/948807969d43fe6d3c44a91ba0316bb3 to your computer and use it in GitHub Desktop.
Save felixmon/948807969d43fe6d3c44a91ba0316bb3 to your computer and use it in GitHub Desktop.
Python Gists

System

Check bit version

python -c "import ctypes; print(32 if ctypes.sizeof(ctypes.c_voidp)==4 else 64, 'bit CPU')"

Functions

List dict

fruits = ['lemon', 'pear', 'watermelon', 'tomato']
print(*fruits)

Results: lemon pear watermelon tomato

print(fruits)

Results: ['lemon', 'pear', 'watermelon', 'tomato']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment