visit r/swamipp for assistance or to share what you made
Swami++ is a mid-high level programming language written in python!
#Syntax Loops:
for i each list_name then
//do whatever
end
while condition then
//do whatever
end
do condition then
//do whatever
end
for i=0 to 10 then
//do whaterver
end
If statements:
if condition then body
if condition then body elif condition then body
if condition then body elif condition then body else body
if condition then body else body OR if condition then body elif condition then body else body
Operators:
+, -, *, /, ^, %
List:
Extend: +
Append: *
Remove: -
Access: /
Functions:
func name(args,args) //do stuff end
func (args) //do stuff end -create anonymous function
Strings
created "like this"
Variables:
declared like
let x=4 let x = len(r)
Built In Functions:
println
input
int
float
string
is_number
is_string
is_list
is_function
append //mutable
extend //mutable
pop //mutable
pi
import
len
randint
visit r/swamipp for assistance or to share what you made