[Tutor] character counting

2014-03-23 Thread Mustafa Musameh
Hi; I have a file that looks like this: >title 1 AAATTTGGGCCCATA... TTAACAAGTTAAAT… >title 2 AAATTTAAACCC… ATATATATA… … I wrote the following to count the As, Cs, Gs anTs for each title I wrote the following import sys file = open('file.fna') data=file.readlines() for line in data: li

[Tutor] please help

2014-03-21 Thread Mustafa Musameh
Please help. I have been search the internet to understand how to write a simple program/script with python, and I did not do anything. I have a file that look like this >ID 1 agtcgtacgt… >ID 2 acccttcc . . . in other words, it contains several IDs each one has a sequence of 'acgt' le

[Tutor] odbc connection with python

2009-05-19 Thread mustafa akkoc
how can i make odbc connection language and i wanna make gui project after connecting database anyone has document ? -- Mustafa Akkoc ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] i can only write one line of code on python shell help please ?

2009-03-09 Thread mustafa akkoc
Hello , - In python shell , i can only write one line of code when I go to next line this sign appears >>> how can write the code like in script mode and run thanks -- Mustafa Akkoc ___ Tutor maillist - Tutor@python.org http://mail.p

[Tutor] if inside if help python

2009-03-09 Thread mustafa akkoc
I have question if we make if statement inside if like cprogramming below how to do in python int x-1 , y=2; if (x==1) { printf(" inside first if "); if (y==2) { printf ("inside second if "); } }

[Tutor] probelm pyhton shell doesnt open help please

2009-03-08 Thread mustafa akkoc
it gives this message socket error -- Mustafa Akkoc ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] while loop problem

2009-03-08 Thread mustafa akkoc
nning = False # this causes the while loop to stop elif guess < number: print('No, it is a little higher than that.') else: print('No, it is a little lower than that.') else: print('The while loop is over.') # Do anything else

[Tutor] print problem python

2009-03-06 Thread mustafa akkoc
i start learning pyton language i want to print some thing but when i type : print "hello world" but it give an error like this SyntaxError: invalid syntax (, line 1) i am using python shell version 3.0.1 -- Mustafa Akkoc ___ Tuto

[Tutor] anything to do???

2005-07-27 Thread Mustafa
i hav just finished learning pythob from "A byte of python"(an online book) so i wanted to apply my new skills. to learn and to have some fun. is there any place which lists jobs to be done...you know minor jobs and requests thats nobody has found time to do. i would point out that i am not looki

[Tutor] how to add python code to a webpage

2005-07-16 Thread Mustafa Abbasi
i want to create a simple page which has a form and takes in persons date of birth and give out exact age. how do i add python codeto an html page. i don't have any dreamweaver or frontpage. this is basically cuz some freinds advised me to create this isnce i am learning programming python.. so ple

[Tutor] is there an online exam or coarse i can take to get a certificate

2005-07-16 Thread Mustafa Abbasi
is there an online exam or coarse i can take to get a certificate in python. preferrably cheap and online because i live in pakistan and online exams are my only hope. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor