Question: # Step 1 : Ask the user for their name user _ name = input ( Please enter your name: ) print (

# Step 1: Ask the user for their name
user_name = input("Please enter your name: ")
print(f"Hello,{user_name}! Welcome to the movie quotes script.")
# Step 2: Create a list of quotes and save to a text file
quotes =[
f"{user_name}, you can't handle the truth!",
"May the Force be with you.",
"There's no place like home.",
"I see dead people.",
"I'll be back."
]
# Save quotes to a text document
file_name = "quotes.txt"
with open(file_name, "w") as file:
for quote in quotes:
file.write(quote +"
")
# Step 3: Read quotes from the text document and print them
quote_lengths =[]
with open(file_name, "r") as file:
for quote in file:
quote = quote.strip() # Remove any extra whitespace/newline characters
print(quote)
# Step 4: Print the number of characters in each quote
length = len(quote)
print(length)
# Step 5: Append the length to the list
quote_lengths.append(length)
# Step 6: Print the list of quote lengths
print("Lengths of each quote:", quote_lengths)
# Step 7: Print the file name
print("The quotes are stored in:", file_name)
# Step 8: Create a list for user input of favorite quotes
user_quotes =[]
for i in range(5): # Ask for 5 quotes
user_quote = input(f"Please enter your favorite quote {i +1}: ")
user_quotes.append(user_quote)
# Write user quotes to a file
with open("user_quotes.txt","w") as user_file:
for user_quote in user_quotes:
user_file.write(user_quote +"
")
# Step 9: Read and print user quotes from the text document
with open("user_quotes.txt","r") as user_file:
for user_quote in user_file:
user_quote = user_quote.strip()
print(user_quote)
print(len(user_quote)) # Print the length of each user quote
# Step 10: Add two graphic images (Note: You need to replace 'image1.png' and 'image2.png' with actual image paths)
#from PIL import Image
#image1= Image.open('image1.png')
#image2= Image.open('image2.png')
#image1.show()
#image2.show()
from turtle import *
# Initialize the screen
screen = Screen()
myImage1= "vector.gif"
penup()
addshape
goto(100,100) # Move to a position
forward(100)
right(90)
forward(100)
#myImage2= "matrix.gif"
penup()
goto(200,100) # Move to a position
forward(100)
right(90)
forward(200)
# Keep the window open until the user closes it
screen.mainloop():
what is wrong with this script for the graphic design image not to desplay in fulness. plus I need the pictures I stored in the folder to display perfectly. So, please help me fix this script so the images I stored in the file can display

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!