As you can see by my crude coding I am a newbie. I've gotten this far and know my objectives could be achieved by much better coding (last file asked to be open fails). The objective is to put together a program based on a book about Christian counseling principles where-by through series of questions and answers received an analysis is achieved. I had planned upon getting the question and answer part put together to go back inserting code to capture response and based on such response insert data into a client file in order to form the final analysis.
Can anyone offer help as to better code and ideas to achieve my final goal. Thank-you
redacted
Can anyone offer help as to better code and ideas to achieve my final goal. Thank-you
redacted
#!/usr/bin/env python3.4 # -*- coding: utf-8 -*- """ Created on Fri May 19 23:55:18 2017 @author: nisbet """ #def main(): # Info.txt = raw_input("Info.txt: ") # infile = open(Info.txt, 'r') # data = infile.read() # print ("data") #next ... ... name = input('What is your name? ') print('Hello ' + name) Age = input('What is your age? ') print('Your age is ' + Age) num = input('Give me a PH number? ') print('Is this right: ' + str(num)) import time time.sleep(10) with open("/home/nisbet/Heart_of_Man/Info.txt", "rt") as in_file: Info = in_file.read() print(Info) import time time.sleep(15) import sys import os with open("/home/nisbet/Heart_of_Man/forword.txt", "rt") as in_file: forword = in_file.read() print(forword) next eval(input('Enter question number 1 through 10:')) with open("/home/nisbet/Heart_of_Man/Question1.txt", "rt") as in_file: Question1 = in_file.read() if input == 1: Question1 = 1 print(Question1) import time time.sleep(60) next eval(input('Does A B or C best discribe ')) print(name) with open("/home/nisbet/Heart_of_Man/QuestionA.txt", "rt") as in_file: QuestionA = in_file.read() if input == A: QuestionA = A print(QuestionA)