Question: # Step 1 : Ask the user for their name user _ name = input ( Please enter your name: ) print (
# Step : Ask the user for their name
username inputPlease enter your name:
printfHellousername Welcome to the movie quotes script."
# Step : Create a list of quotes and save to a text file
quotes
fusername 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
filename "quotes.txt
with openfilename, w as file:
for quote in quotes:
file.writequote
# Step : Read quotes from the text document and print them
quotelengths
with openfilename, r as file:
for quote in file:
quote quote.strip # Remove any extra whitespacenewline characters
printquote
# Step : Print the number of characters in each quote
length lenquote
printlength
# Step : Append the length to the list
quotelengths.appendlength
# Step : Print the list of quote lengths
printLengths of each quote:", quotelengths
# Step : Print the file name
printThe quotes are stored in: filename
# Step : Create a list for user input of favorite quotes
userquotes
for i in range: # Ask for quotes
userquote inputfPlease enter your favorite quote i :
userquotes.appenduserquote
# Write user quotes to a file
with openuserquotes.txtw as userfile:
for userquote in userquotes:
userfile.writeuserquote
# Step : Read and print user quotes from the text document
with openuserquotes.txtr as userfile:
for userquote in userfile:
userquote userquote.strip
printuserquote
printlenuserquote # Print the length of each user quote
# Step : Add two graphic images Note: You need to replace 'imagepng and 'imagepng with actual image paths
#from PIL import Image
#image Image.openimagepng
#image Image.openimagepng
#imageshow
#imageshow
from turtle import
# Initialize the screen
screen Screen
myImage "vector.gif"
penup
addshape
goto # Move to a position
forward
right
forward
#myImage "matrix.gif"
penup
goto # Move to a position
forward
right
forward
# 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
