[Tutor] Advise with coding

2016-10-11 Thread tracey jones-Francis
Hi I have just started Com Sci in Uni and I am new to coding. I feel pretty inadequate as I am really struggling with the latest tasks. Most of the work is self-directed learning so we need to figure it out ourselves but I am running out of time. Is it possible someone on here can advise me wh

[Tutor] Code for python game

2016-10-12 Thread tracey jones-Francis
Im in the middle of designing a game in python, im quite new to using it and am struggling with a certain bit of code. I want to have a function that will ignore certain words that i have specified in a dictionary. I have tried so many different types of code but can't seem to return just the ke

[Tutor] Code not working advise pls

2016-11-04 Thread tracey jones-Francis
Hi, I want to write a function that will calculate and return the sum of the n highest value in a list a. Also, when n is less than 0, the answer should be zero, and if n is greater than the number of elements in the list, all elements should be included in the sum. In addition i want to write

[Tutor] Theory of computation non-emptiness

2018-04-21 Thread tracey jones-Francis
Hi there, I've been working on code that takes a text file that represents a specific Deterministic Finite Automata. The text files are set up in a specific way so that line 1 specifies the number of states. Line 2 specifies the states (i.e., just a list of the names of the states, separated b