Title

please help me python coders
1 post / 0 new
Steph-With-This...
Offline
Joined: 09/01/2017 - 20:00
Posts: 2
please help me python coders

#ControlledAssessmentPARTTWO
 
textfile = open("assessment2.txt", "w")
textfile.write("tinny, speaker, sound: If this started to happen after your phone got wet. I would suggest that you put it in rice for three days    then take it to a shop to get a profesional opinion.\n")
textfile.write("glitch, glitches, blink, Turn, Off, App, Screen: Try resetting the phone by holding down the home button and lock button at       the same time until the apple symbol shows and then wait. If this fails take it to the apple store.\n")
textfile.write("vibrate, vibration, stop, continuos: Try resetting the phone by holding down the home button and lock button at the same       time until the apple symbol shows and then wait. The chances are you will need to have the connecters inside fixed.\n")
textfile.write("torch, light: Try turning your phone off and on again; but the chances are a proffesional will have to take a look.\n")
textfile.write("charger, sign, symbol, connect: Your connecters on the inside of your phonecould be damaged; try replacing the chrger         cable and plug. If this fails the go to the shop and talk to a specialist.\n")
textfile.write("picture, take, full, storage, camera: Delete some apps or videos or previous pictures mto make space for new ones.\n")
textfile.close()
 
#Introductory_messages
print("*****WELCOME_TO_IPHONE_SOLUTIONS_PROGRAM*****")
print("~~~This program will ask you a series of questions to help diagnose the issue with your phone~~~.")
print("")
print("")
 
#First_input_and_variable
turnon = str.lower(input("Does your phone turn on?"))
 
#If_statement_for_turn_on
if turnon == "yes" or turnon == "y" or turnon == "yeah" or turnon == "yep" or turnon == "yea":
    issue = str.lower(input("Input your issue and we will search for a diagnosis using key words."))
    issuelist = issue.split(" ")
    textfile = open("assessment2.txt", "r")
    text = textfile.readline()
    text1 = text.split(", ")
    for issuelist in text1:
        print(text1)
else:
    print("Go to task one.")
 
 
 
 
this is my code but it keeps printing the first line of my text file, i need to print the line depending on my problem