2021-04-17 22:41:26 -04:00

15 lines
438 B
Python

helloworld = "hello" + " " + "world"
print (helloworld)
print ("\n", "We can also multiply strings in Python using the * character! ie string = mystring * 10")
moreHelloWorld = helloworld * 10
print (moreHelloWorld)
print ("\n", "We can even join lists!")
evenNumbers = [2,4,6,8]
oddNumbers = [1,3,5,7,9]
allNumbers = evenNumbers + oddNumbers
print (allNumbers)
print ("\n", "And even Multiply lists with * !!!")
print (allNumbers * 3)