Skip to content

Instantly share code, notes, and snippets.

@racterub
Created June 6, 2017 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save racterub/61eb8e2244803d7072e0f78edac2c0c4 to your computer and use it in GitHub Desktop.
Save racterub/61eb8e2244803d7072e0f78edac2c0c4 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# 3 basic data type
a = 'this is a string'
b = ['this is first element in this list', 'this is second element in this list']
c = {'pig':'cute', 'lion':'king'}
b[0] == 'this is first element in this list'
# Boolean
True
False
None
# print
py2: print 'hello world'
py3: print('hello world')
a = 'hello world'
py2: print a
py3: print(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment