Python3 Ruby bc の違い  言語    Python3          Ruby           bc  ----------------------------------------------------------------------------------------------  起動    python3          irb            bc                      irb -m           bc -l  割り算   2/3            2.0/3           2/3  定義    def a(x): 以後インデント  def a(x)          define a(x){         return          end            return( );}  エラー回復               ]  }           }   べき乗   **             **             ^  変数    全角 可          全角 可          英小文字,数字,_ abc_123  文字列(値) a="Hello"         a="Hello"           出力    print(a) 改行有り     puts 改行有り       print 改行無し        print(a,b,c) スペース有り print 改行無し       変数や数字のみでも出力可        print(a,end="") 改行無し  print "a=", a, "\n"    print "a=", a, "\n"  コメント  #             #             /* 〜 */  読み込み  from math import *     include Math        bc -l extensions.bc        from myfunc import *    load(myfunc.rb)      bc myfunc.bc        import math → math.〜   load("/〜/〜/myfunc.rb")  bc "/〜/〜/myfunc.bc"  プログラム python3 test.py      ruby test.rb        bc -l prog.bc                                   (prg.bcの中はquitで終了)  ----------------------------------------------------------------------------------------------