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
SINGH SOURABH BHAGWAN
taskB_inlab
Commits
0ca811f5
Commit
0ca811f5
authored
Aug 23, 2016
by
SINGH SOURABH BHAGWAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
also prints the transpose
parent
0f54af9d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
matrix.txt
matrix.txt
+6
-4
task3.py
task3.py
+3
-1
transpose.txt
transpose.txt
+6
-5
No files found.
matrix.txt
View file @
0ca811f5
3 4
1 2 3 4
5 6 7 8
2 5 6 8
5 5
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
\ No newline at end of file
task3.py
View file @
0ca811f5
...
...
@@ -24,10 +24,12 @@ t = open('transpose.txt','w')
dim
=
[
c
,
r
]
k
=
''
.
join
(
str
(
x
)
+
' '
for
x
in
dim
)
t
.
write
(
k
+
'
\n
'
)
print
(
k
)
mat_tr
=
[]
for
j
in
range
(
0
,
c
):
row
=
function2
(
mat
,
j
)
mat_tr
.
append
(
row
)
s
=
''
.
join
(
str
(
y
)
+
' '
for
y
in
row
)
t
.
write
(
s
+
'
\n
'
)
\ No newline at end of file
t
.
write
(
s
+
'
\n
'
)
print
(
s
)
\ No newline at end of file
transpose.txt
View file @
0ca811f5
4 3
1 5 2
2 6 5
3 7 6
4 8 8
5 5
1 6 11 16 21
2 7 12 17 22
3 8 13 18 23
4 9 14 19 24
5 10 15 20 25
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