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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
#!/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) |