User Profile

Collapse

Profile Sidebar

Collapse
Kasrav
Kasrav
Last Activity: Jul 9 '07, 02:58 PM
Joined: Apr 19 '07
Location: London and portsmouth
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Kasrav
    replied to writing files in python
    thanks once again u guys
    See more | Go to post

    Leave a comment:


  • Kasrav
    replied to writing files in python
    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...
    See more | Go to post

    Leave a comment:


  • Kasrav
    replied to writing files in python
    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 = [ ]

    ...
    See more | Go to post

    Leave a comment:


  • Kasrav
    replied to writing files in python
    [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...
    See more | Go to post
    Last edited by bartonc; Jun 30 '07, 08:03 PM. Reason: Changed tags to [CODE=python][CODE] tags.

    Leave a comment:


  • Kasrav
    replied to writing files in python
    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.
    Thanks
    See more | Go to post

    Leave a comment:


  • Kasrav
    started a topic writing files in python

    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...
    See more | Go to post
    Last edited by bartonc; Jun 28 '07, 09:15 PM. Reason: Added [CODE=python][CODE] tags.

  • Kasrav
    started a topic Loops and Lists problem

    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....
    See more | Go to post

  • Kasrav
    started a topic list declaration

    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...
    See more | Go to post
    Last edited by bartonc; Jun 1 '07, 05:34 PM. Reason: added [code][/code] tags

  • Kasrav
    replied to leap year problem
    thanks man jus wonderin d u guys get paid for this?
    See more | Go to post

    Leave a comment:


  • Kasrav
    started a topic leap year problem

    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...
    See more | Go to post

  • Kasrav
    replied to Breaking down sentances
    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.
    See more | Go to post

    Leave a comment:


  • Kasrav
    replied to Breaking down sentances
    avg is the average word lenght in the sentnce so the average of the words in that sentence...
    See more | Go to post

    Leave a comment:


  • Kasrav
    started a topic Breaking down sentances

    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
    See more | Go to post

  • Kasrav
    started a topic new to site and python

    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

    ----------------------------------------------------------------------...
    See more | Go to post

  • Kasrav
    replied to kasrav needs Python help
    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
    See more | Go to post

    Leave a comment:


  • Kasrav
    started a topic kasrav needs Python help

    kasrav needs Python help

    need some help on one of my progrqmmes as am a bit nem to python anyone thanks
    See more | Go to post
No activity results to display
Show More
Working...