Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import debug
- from system import platform
- import 'external.new'
- # comment line
- ##
- comment multiple lines
- ##
- a = platform( ) # str
- b = 1 # int
- c = 1.0 # float
- d = true # bool
- e = false # bool
- f = ( a, b ) # tuple
- g = b'a' # byte
- h = { a, b, c } # list
- f.append( d )
- f.insert( 3, d ) # by index
- f.remove( d )
- i = [ a: d, b: g ] # dict
- # conditions
- if ( a = 'Android' ) {
- if not ( a = 'iOS' ) or ( a = 'OSX' ) {
- debug( false ) # print
- }
- } else if ( a = 'Linux' ) or ( a = 'Windows' ) {
- debug( true )
- } else {
- debug( false )
- }
- var = str( b )
- var = int( a )
- var = len( b )
- var = byte( a )
- var = type( c )
- var = var.split( ' ' ) # for loop or toList( ' ' )
- var = var.slice( 0, 1 )
- for ( var in h ) { # loop
- debug( var )
- }
- while ( d ) {
- }
- MyClass { # class
- myFunction( ) { # function
- }
- }
- ##
- self
- switch
- case
- with
- try
- global
- ##
Add Comment
Please, Sign In to add comment