String Manipulation
print("Hello world!\\nHello world!")
print("Hello " + "Oliver")
Debugging Practice
print("Day 1 - String Manipulation")
print("String Concatenation is done with the "+" sign.")
print('e.g. print("Hello" + "World")')
print("New lines can be created with a backslash n")
Python Input Function
input("A prompt for the user")
Input Function
print(len(input("What is your name? \\n")))
Python Variables
name = "Jack"
print(name)
name = input("What is your name?\\n")
length = len(name)
print(length)
Variables
a = input("a: ")
b = input("b: ")
print("a: " + b)
print("b: " + a)
Band Name Generator
print("Welcome to the Band Name Generator. \\n")
city = input("What's the name of the city you grew up in? \\n")
petName = input("What's your pet's name? \\n")
print("Your band name could be " + city + " " + petName )