#Sam O
#9/24/2021
#I learned how to put different strings with different variables
#I didn't understand how to do the "Change variable type with reassignment" assignment so i wasn't able to complete it
print('strings go in single')
print("or double quotes")
strings go in single
or double quotes
#This code is to test single and double quotation marks
print('I have 2 animals at home')
print("for some quotes use double quotaion marks")
# [ ] Review code and Run - What is the difference between these 2 statements - are they displaying the same value?
print(299)
print("299")
299
299
#This program is to test printing integers and string integers
print(2097)
print("2097")
2097
2097
# [ ] Review code and Run
current_msg = "I am a string"
print("I am a string")
print(current_msg)
I am a string
I am a string
# [ ] Review code and Run
current_msg = "Run this cell using Ctrl+Enter"
print(current_msg)
#This program is to test assigning new values to a string
current_msg = "I like animals"
print("I like animals")
print(current_msg)
I like animals
I like animals
test_value = 22
print(test_value)
test_value = "Joana"
print(test_value)
22
Joana
#This program is to test assigning a variable and printing the value
students_name = "Sam O"
print(students_name)
Sam O
student_name = "Harry"
print(student_name)
Student_height = "6'2"
print(Student_height)
Harry
6'2
student_name = "bucket"
print(bucket)
2000 = bucket
print(bucket)
Execution error
SyntaxError: can't assign to literal (140924022.py, line 3)
print(123) #integer, with numeric value
print("123") #string, represents text characters
123
123