User Profile
Collapse
-
sorry Barton i dint expalin myself well the program i posted is ok but the problem that i have is that i have to use it to write another program which records data from the file created(program ) and it should calculate and print out the following:
the name of each student, and which units, if any, they failed(ie a mark under 40). If they failed nothing i should report that as well.
the average score for each unit and...Leave a comment:
-
hey there, sorry i took long to reply its just that i dnt have regular use of the net.
I just wanted to ask if i am going to get some help on this file problem, thanks
<Mod EDIT: pasting last submission here>
[Sorry, I though you were presenting working code because you did not explain any problem that you were having.][CODE=python]def student():
welcome();
info = [ ]
...Leave a comment:
-
[CODE=python]def student():
welcome();
info = [ ]
print "Creating a file studentHND.txt to write to: \n";
output = open("studentHN D.txt","w");
for i in range(5):
name = raw_input('Plea se enter name: ');
python = validate('Pleas e enter mark for pythod: ');
aandd = validate('Pleas e enter mark...Leave a comment:
-
I am really sorry its not that i havent read the post guidelines or am not bothered to put codes tags around my post. I have read the guideline posts about two times now and i am still trying to figure how to do it because everytime i try i fail. I have just read the guidelines again this morning and i am still a bit confused as to do it may be you can enlight me more. I apologise for anything wrong done.
ThanksLeave a comment:
-
writing files in python
Hey there its me again i got this program but i have to improve on it but i am stuck hopefully you can help here is the code
[CODE=python]
def student():
welcome();
info = [ ]
print "Creating a file studentHND.txt to write to: \n";
output = open("studentHN D.txt","w");
for i in range(5):
name... -
Loops and Lists problem
Hey guys thanks for the help so far about all the problems i have been bringing on this forum. I got this problem i cant figure out how to start this program, its about collectnig student survey feedback regarding the quality of a programming unit. Each score is between -5 (hopeless) to + 5 (excellent). There are 20 scores to be input. If a particular score is outside the range -5 to +5 it is assumed to be spoiled, and a mark of 0 is used instead.... -
list declaration
hey guys it me again i got stuck in the middle of this program. The program starts with a list declaration of these numbers [1, 2, 4, 5, 6, 7, 8, 9, 10. 2, 53, 12] , i have to make sure the program outputs the following
1 The number of times 2 occurs in the list numbers
2 The position of the first occurrence of 2 in numbers.
3 The position of the next occurrence of 2 in numbers
4 The position of the last item... -
-
leap year problem
I have another problem hopeful am not bothering you guys too much if u can help that would be wonderful. I have this code here
[CODE=python]
def year2():
print'This program validates days and months of the year'
day = validate('Enter dayNumber: ',1,31);
month = validate('Enter monthNumber: ',1,12);
while(True):
if (month == 1 or month == 3 or month == 5 or month == 7 or month... -
thanks for the help you guys its really good i want to also find out what is the best book for python would you reccommend for a someone who is quite new to python.Leave a comment:
-
avg is the average word lenght in the sentnce so the average of the words in that sentence...Leave a comment:
-
Breaking down sentances
thanks for your help with my previous problem but i got another one hopefully this doesnt bother you guys at all. how do i go about writing a program that counts the number of words in a sentence by the user and make sure that it calculates the avrage word length of that sentence. thanks once again -
new to site and python
i dnt have much access to the internet so thats why i take long to reply sorry about that. strings are a big headache fro me so i dnt know if u could give any ideas of how to go about them e.g, if i had to write a program where u have to enter a phrase and then the program calculates and outputs the acronym derived from that phrase. all help appreaciated thanks
----------------------------------------------------------------------... -
i dnt have much access to the internet so thats why i take long to reply sorry about that. strings are a big headache fro me so i dnt know if u could give any ideas of how to go about them e.g, if i had to write a program where u have to enter a phrase and then the program calculates and outputs the acronym derived from that phrase. all help appreaciated thanksLeave a comment:
-
kasrav needs Python help
need some help on one of my progrqmmes as am a bit nem to python anyone thanks
No activity results to display
Show More
Leave a comment: