Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskB_inlab
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
ARUNAVO KUMAR MONDAL
taskB_inlab
Commits
a184df07
Commit
a184df07
authored
Aug 23, 2016
by
ARUNAVO KUMAR MONDAL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
done task 3 anded only task3.py
parent
2d162947
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
task3.py
task3.py
+18
-0
No files found.
task3.py
0 → 100644
View file @
a184df07
def
f
():
t
=
open
(
'mat.txt'
,
'r'
)
l
=
[
map
(
int
,
line
.
split
(
' '
))
for
line
in
t
]
r
=
l
[
0
][
0
];
c
=
l
[
0
][
1
];
b
=
[[
'None'
]
*
c
for
_
in
range
(
r
)]
b
=
l
[
1
:];
trans
=
[
list
(
i
)
for
i
in
zip
(
*
b
)]
f
=
open
(
"transpose.txt"
,
"wb"
)
f
.
write
(
str
(
c
)
+
" "
+
str
(
r
)
+
'
\n
'
)
for
i
in
range
(
c
):
s
=
""
for
j
in
range
(
r
):
s
=
s
+
str
(
trans
[
i
][
j
])
+
" "
f
.
write
(
s
+
'
\n
'
)
f
.
close
()
f
()
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