Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GAS-site
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arman Sobhi
GAS-site
Commits
bb59dea6
Commit
bb59dea6
authored
Aug 24, 2016
by
Saikiran Srirangapalli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spacing
parent
4a73bfb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
optionwriter.py
optionwriter.py
+6
-6
No files found.
optionwriter.py
View file @
bb59dea6
...
...
@@ -9,11 +9,11 @@ import sys
def
main
():
with
open
(
'listOfCourses.txt'
,
'r'
)
as
file
:
courses
=
re
.
findall
(
'[a-z]+[0-9][0-9V][0-9]{2}'
,
file
.
read
())
print
(
courses
)
with
open
(
'htmlCourses.txt'
,
'w'
)
as
file
:
for
course
in
courses
:
file
.
write
(
'<option value="
%
s">
\n
'
%
course
)
with
open
(
'listOfCourses.txt'
,
'r'
)
as
file
:
courses
=
re
.
findall
(
'[a-z]+[0-9][0-9V][0-9]{2}'
,
file
.
read
())
print
(
courses
)
with
open
(
'htmlCourses.txt'
,
'w'
)
as
file
:
for
course
in
courses
:
file
.
write
(
'<option value="
%
s">
\n
'
%
course
)
if
__name__
==
'__main__'
:
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment