Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: hardest week yet: some guidence please
Post: RE: hardest week yet: some guidence please

(Aug-18-2019, 06:56 PM)ndc85430 Wrote: Have you even tried that code? Do you understand why it's incorrect? Where are the two values you need stored? It really shouldn't be too hard. I know its some...
raymond2688 Homework 25 10,788 Aug-18-2019, 07:25 PM
    Thread: hardest week yet: some guidence please
Post: RE: hardest week yet: some guidence please

I get that now but that leeds to my other issue is my code counting how many time a user name is used. (Aug-18-2019, 06:44 PM)ndc85430 Wrote: First, you're printing the format method, not calling ...
raymond2688 Homework 25 10,788 Aug-18-2019, 06:48 PM
    Thread: hardest week yet: some guidence please
Post: RE: hardest week yet: some guidence please

I am on step 4 now. I think I am doing pretty good but I have a couple issues. I am uncertain if it is actually removing dupes but keeping count of number of times a user name attempts to log in. My ...
raymond2688 Homework 25 10,788 Aug-18-2019, 06:12 PM
    Thread: hardest week yet: some guidence please
Post: RE: hardest week yet: some guidence please

(Aug-17-2019, 05:15 PM)jefsummers Wrote: start = line.find("invalid user")+13Add 13 which is the length of "invalid user " (including the space) about the only thing i did not try......I was putting...
raymond2688 Homework 25 10,788 Aug-17-2019, 05:21 PM
    Thread: hardest week yet: some guidence please
Post: RE: hardest week yet: some guidence please

(Aug-17-2019, 01:43 PM)ichabod801 Wrote: Just add five to start. Don't slice something else. Add five to start. And that's assuming you are searching for 'user', so you need 5 characters to get past...
raymond2688 Homework 25 10,788 Aug-17-2019, 02:33 PM
    Thread: hardest week yet: some guidence please
Post: RE: hardest week yet: some guidence please

(Aug-17-2019, 02:13 AM)ichabod801 Wrote: The find method returns the start of the substring in the string. So your start variable is set to the beginning of the word 'user', that is, to the 'u'. You...
raymond2688 Homework 25 10,788 Aug-17-2019, 04:27 AM
    Thread: hardest week yet: some guidence please
Post: slice help

I am trying to get just the user name that is between invalid user and from the following code is what i have with open("auth.log.1") as auth_log: for line in auth_log: if "Failed password...
raymond2688 Homework 25 10,788 Aug-17-2019, 12:52 AM
    Thread: hardest week yet: some guidence please
Post: RE: hardest week yet: some guidence please

(Aug-16-2019, 09:19 PM)jefsummers Wrote: Besides being the wrong type, intruder_log is empty. You won't find anything. yes it seems I got ahead of myself. I have removed the directory. I am suppose...
raymond2688 Homework 25 10,788 Aug-16-2019, 11:02 PM
    Thread: hardest week yet: some guidence please
Post: RE: hardest week yet: some guidence please

(Aug-16-2019, 07:30 PM)jefsummers Wrote: In lines 6 and 7, it appears that intruder_log is still {} so you won't find what you are looking for. so im thinking that i need to replace {} with [] (Au...
raymond2688 Homework 25 10,788 Aug-16-2019, 08:07 PM
    Thread: hardest week yet: some guidence please
Post: RE: hardest week yet: some guidence please

(Aug-16-2019, 06:16 PM)ichabod801 Wrote: For step 2, you should be checking in line, not in auth_log. Once you have that fixed, do you see a pattern in the output from step 2? If so, you use that pa...
raymond2688 Homework 25 10,788 Aug-16-2019, 06:32 PM
    Thread: hardest week yet: some guidence please
Post: hardest week yet: some guidence please

Here is the order of my assignment Step 1 The objective of this program is simply to open a file, read each line and display it. Your program should: Open auth.log.1. Read each line. Dis...
raymond2688 Homework 25 10,788 Aug-16-2019, 05:40 PM
    Thread: It worked now it doesnt...ugh
Post: RE: It worked now it doesnt...ugh

(Aug-07-2019, 07:41 PM)Yoriz Wrote: Move the if to immediately after the question input, then it will report 'FAQ already exists' without first waiting for the answer input that worked thank you ver...
raymond2688 Homework 15 5,490 Aug-07-2019, 07:47 PM
    Thread: It worked now it doesnt...ugh
Post: RE: It worked now it doesnt...ugh

(Aug-07-2019, 07:34 PM)Yoriz Wrote: I fixed the indentation and now get stuck in option 1 as option is not altered inside of the while loop. Output:1: Add a Question 2: Delete a Question 3: List all...
raymond2688 Homework 15 5,490 Aug-07-2019, 07:37 PM
    Thread: It worked now it doesnt...ugh
Post: RE: It worked now it doesnt...ugh

(Aug-07-2019, 07:25 PM)Yoriz Wrote: i get Error: print('FAQ deleted') ^ IndentationError: unexpected indentfrom the code above yes I fixed that. just now. now it runs but does not return wit...
raymond2688 Homework 15 5,490 Aug-07-2019, 07:29 PM
    Thread: It worked now it doesnt...ugh
Post: RE: It worked now it doesnt...ugh

(Aug-07-2019, 07:10 PM)Yoriz Wrote: question = input("\nEnter a question to be added: ") if question in FAQ: print('FAQ already exists') I am getting illegal target for variable annotation on th...
raymond2688 Homework 15 5,490 Aug-07-2019, 07:20 PM
    Thread: It worked now it doesnt...ugh
Post: RE: It worked now it doesnt...ugh

(Aug-07-2019, 06:43 PM)Yoriz Wrote: The if statement needs to be after the question is asked but before the question is added to the dictionary, otherwise it will always say it already exists. when ...
raymond2688 Homework 15 5,490 Aug-07-2019, 07:06 PM
    Thread: It worked now it doesnt...ugh
Post: RE: It worked now it doesnt...ugh

I am trying to make my dictionary produce an error message stating "FAQ already exists" not working. I think the comand is right just maybe not the placement if option == 1: question = in...
raymond2688 Homework 15 5,490 Aug-07-2019, 06:35 PM
    Thread: It worked now it doesnt...ugh
Post: RE: It worked now it doesnt...ugh

(Aug-07-2019, 05:15 PM)ichabod801 Wrote: input returns a string, you are comparing to integers. Either int() the input, or compare to strings like '1'. thank you sir I did remove the int last night....
raymond2688 Homework 15 5,490 Aug-07-2019, 05:26 PM
    Thread: It worked now it doesnt...ugh
Post: It worked now it doesnt...ugh

Can someone look at this and tell me why this does not work....I know it is something simple as it worked 1 min and not the next. picharm is not showing any errors print("--------------------------")...
raymond2688 Homework 15 5,490 Aug-07-2019, 03:44 PM
    Thread: me again...:)
Post: RE: me again...:)

(Aug-06-2019, 10:20 PM)ichabod801 Wrote: Well, if you haven't covered format by itself, note that print() by itself will print a blank line. Also \n in a string represents a new line, so print('\nQu...
raymond2688 Homework 4 2,227 Aug-07-2019, 01:01 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020