No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
12347 10000 secretary James Harrison 12348 20000 secretary Jade Powell 12341 40000 consultant Adam Johnson Hi, lets just say that the text above is a text file. I would like to store these employees information, then asking the user to search for (e.g payroll number) which then will print full … | |
12347 10000 secretary James Harrison 12348 20000 secretary Jade Powell 12341 40000 consultant Adam Johnson Hi, lets just say that the text above is a text file. How would I go about searching and printing the rows with 'secretary' only? Or any other value? When the user is asked to … | |
Hey! Just wondering how you make the code keep asking for a correct file input until a correct file is inputted, rather than just exiting the program when incorrect? f = input("Enter a file name: ") try: infile = open(f, "r") except: print("File not found:", f) text = infile.read() print(text) | |
I made this code which outputs . ... ..... ...*****. ....***... .....*..... but its supposed to output . ... ..... .*****. ...***... .....*..... Any ideas what im doing wrong? To output the triangle myChar1 = * myChar2 = . myLen = 3 myChar1 = input("Select first character: ") myChar2 = … | |
This is some code I have made to count the most occuring vowels within the inputted message. Everytime I run it, it prints out it out 5 times, how can I fix this? I also want it to display a message when there is no vowel entered. Maybe someone can … |
The End.