We are using Python for my Artificial Intelligence class.
Did a little over view the past 2 class periods of python.
It's kind of ludicrous.
No semicolons, use indentation instead of braces for things.
Loosely typed madness.
Declare two variables like this:
x,y=50,100
Swap statement:
x,y=y,x
return a,b,c
def method(a,b=10,c=12)
call the method in any of these ways:
method(c = 15, a=16)
method(12, b=15,c=17)
method(c=12,b=12,a=7)
Did a little over view the past 2 class periods of python.
It's kind of ludicrous.
No semicolons, use indentation instead of braces for things.
Loosely typed madness.
Declare two variables like this:
x,y=50,100
Swap statement:
x,y=y,x
return a,b,c
def method(a,b=10,c=12)
call the method in any of these ways:
method(c = 15, a=16)
method(12, b=15,c=17)
method(c=12,b=12,a=7)