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
RAJAT KAPOOR
taskB_inlab
Commits
c2e640b5
Commit
c2e640b5
authored
Aug 23, 2016
by
RAJAT KAPOOR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Task3
parent
b5807599
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
task3.py
task3.py
+31
-0
No files found.
task3.py
0 → 100755
View file @
c2e640b5
#!/usr/bin/python
f
=
open
(
'matrix.txt'
)
line1
=
f
.
readline
()
string1
=
line1
a
=
list
(
string1
)
r
=
int
(
a
[
0
])
c
=
int
(
a
[
2
])
x
=
[[
None
for
_
in
range
(
c
)]
for
_
in
range
(
r
)]
t
=
[[
None
for
_
in
range
(
r
)]
for
_
in
range
(
c
)]
l
=
f
.
readline
()
b
=
l
.
split
()
for
j
in
range
(
r
):
for
i
in
range
(
c
):
x
[
j
][
i
]
=
int
(
b
[
i
])
l
=
f
.
readline
()
b
=
l
.
split
()
f
=
open
(
'transpose.txt'
,
'w'
)
f
.
write
(
str
(
c
))
f
.
write
(
' '
)
f
.
write
(
str
(
r
))
f
.
write
(
'
\n
'
)
for
j
in
range
(
r
):
for
i
in
range
(
c
):
t
[
i
][
j
]
=
x
[
j
][
i
]
for
j
in
range
(
c
):
for
i
in
range
(
r
):
f
.
write
(
str
(
t
[
j
][
i
]))
f
.
write
(
' '
)
f
.
write
(
'
\n
'
)
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