- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Dear all, I would like to make a small script that does the following: I have a file that at some point there is a section: ... ... a heading is here .... 1 2 3 4 5 6 7 8 9 10 22 22 336 11252 12 25 3 … |
|
Hi all, I would like to make a for loop in which should do the following: To print the string n[i] twenty times then the string s[i] only one time. Then leave a gap and continue this until the n reaches n599 and s goes to s30. n0 n1 n2 … |
|
Dear All, I am opening a file called initialisation: [CODE]try: initFile = open("initialisation.dat", "r") except IOError: print ("Initialisation file cannot be openned for reading")[/CODE] I would like to read the contents of this file and then print them on several other files i.e. file1, file2, file3, file4, etc. i am … |
|
Dear members, I need to write a small loop to generate the following: 0 0 0 0 .... 0 1 1 1 .... 1 2 2 .... 2 3 .... 3 4 : 299 I think it needs a double loop but since i am still beginner in python i … |