<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Matrix on Python Exercises</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/tags/matrix/</link><description>Recent content in Matrix on Python Exercises</description><generator>Hugo</generator><language>fa-ir</language><lastBuildDate>Sat, 06 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://amirmahdikahdouii.github.io/Python-Exercises/tags/matrix/index.xml" rel="self" type="application/rss+xml"/><item><title>ماتریس به دودویی</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/052-matrix-binary-conversion/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/052-matrix-binary-conversion/</guid><description>&lt;p&gt;&lt;strong&gt;#052&lt;/strong&gt; · &lt;strong&gt;Matrix Binary Conversion&lt;/strong&gt; · &lt;code&gt;arrays&lt;/code&gt; · &lt;code&gt;easy&lt;/code&gt; · &lt;code&gt;python&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Amirmahdikahdouii/Python-Exercises/blob/master/problems/052-matrix-binary-conversion/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id="کار-با-ماتریس-و-اعداد-دودویی"&gt;کار با ماتریس و اعداد دودویی&lt;/h1&gt;
&lt;p&gt;برنامه ای بنویسید که یک ماتریس دلخواه از اعداد طبیعی را بخواند و آن را تبدیل به یک ماتریس دودویی کند.&lt;/p&gt;
&lt;h2 id="example"&gt;Example:&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Input:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;Please Enter Records Count: 2
Please Enter Sells Count: 2
Sell Number: 2
Sell Number: 10
---------------
Sell Number: 20
Sell Number: 30
---------------
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;[[2, 10], [20, 30]]
[[&amp;#39;10&amp;#39;, &amp;#39;1010&amp;#39;], [&amp;#39;10100&amp;#39;, &amp;#39;11110&amp;#39;]]
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>