Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
outLab5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sanjna
outLab5
Commits
a4e6a019
Commit
a4e6a019
authored
4 years ago
by
Sanjna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload new file
parent
3cb2bc16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
q2/main.py
q2/main.py
+15
-0
No files found.
q2/main.py
0 → 100644
View file @
a4e6a019
from
q2
import
collapse
L
=
[[
"this"
,
"is"
],[
"an"
,
"interesting"
,
"python"
],[
"programming"
,
"exercise."
]]
l
=
collapse
(
L
)
print
(
l
)
L
=
[[
"this"
,
"is"
,
"a"
,
"bad"
,
"problem"
]]
l
=
collapse
(
L
)
print
(
l
)
L
=
[[
"this"
],[
"is"
],[
"the"
],[
"easiest"
],[
"problem"
],[
"of"
],[
"this"
],[
"outlab"
]]
l
=
collapse
(
L
)
print
(
l
)
This diff is collapsed.
Click to expand it.
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