-
-
Save racterub/61eb8e2244803d7072e0f78edac2c0c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
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