how to define integer variable in swift code example Example: print variable swift var str1 = "Hello, world" print(str1)