Intro

Variables: Differences: Types are capitalized.

#python
x = 10
#mojo 
var x: Int
x = 10


# python
x:int  = 10
# mojo
x: Int = 10
var x: Int = 10

Classes: There are no classes. Only structs.

Functions:

You must declare function return types

MacOS Content #

#python
x = 10
#mojo 
var x: Int
x = 10


# python
x:int  = 10
# mojo
x: Int = 10
var x: Int = 10

Linux Content #

#python
x = 10
#mojo 
var x: Int
x = 10


# python
x:int  = 10
# mojo
x: Int = 10
var x: Int = 10

Windows Content #