message = "Hello Python world!" print(message) ###highlight=[5,6] message = "Hello Python world!" print(message) message = "Python is my favorite language!" print(message) message = "Thank you for sharing Python with the world, Guido!" print(mesage) ###highlight=[3] message = "Thank you for sharing Python with the world, Guido!" print(message) my_string = "This is a double-quoted string." my_string = 'This is a single-quoted string.' quote = "Linus Torvalds once said, 'Any program is only as good as it is useful.'" first_name = 'eric' print(first_name) print(first_name.title()) ###highlight=[6,8,9] first_name = 'eric' print(first_name) print(first_name.title()) print(first_name.upper()) first_name = 'Eric' print(first_name.lower()) first_name = 'ada' last_name = 'lovelace' full_name = first_name + ' ' + last_name print(full_name.title()) ###highlight=[6,7,8] first_name = 'ada' last_name = 'lovelace' full_name = first_name + ' ' + last_name message = full_name.title() + ' ' + "was considered the world's first computer programmer." print(message) print("Hello everyone!") print("\tHello everyone!") print("Hello \teveryone!") print("Hello everyone!") print("\nHello everyone!") print("Hello \neveryone!") print("\n\n\nHello everyone!") name = ' eric ' print(name.lstrip()) print(name.rstrip()) print(name.strip()) name = ' eric ' print('-' + name.lstrip() + '-') print('-' + name.rstrip() + '-') print('-' + name.strip() + '-') print(3+2) print(3-2) print(3*2) print(3/2) print(3**2) standard_order = 2+3*4 print(standard_order) my_order = (2+3)*4 print(my_order) print(0.1+0.1) print(0.1+0.2) print(3*0.1) # Python 2.7 print 4/2 # Python 2.7 print 3/2 # Python 3.3 print(4/2) # Python 3.3 print(3/2) # This line is a comment. print("This line is not a comment, it is code.") import this # I learned how to strip whitespace from strings. name = '\t\teric' print("I can strip tabs from my name: " + name.strip())