<?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>Rotation on Python Exercises</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/tags/rotation/</link><description>Recent content in Rotation 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/rotation/index.xml" rel="self" type="application/rss+xml"/><item><title>اعداد اول دایره‌ای زیر یک میلیون</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/017-circular-primes-below-million/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/017-circular-primes-below-million/</guid><description>&lt;p&gt;&lt;strong&gt;#017&lt;/strong&gt; · &lt;strong&gt;Circular Primes Below Million&lt;/strong&gt; · &lt;code&gt;math&lt;/code&gt; · &lt;code&gt;medium&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/017-circular-primes-below-million/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;
The Number 197, is called a circular prime because all rotations of the digits: (197, 971, 719), are Themselves Prime.
There are Thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, 97
How many circular primes are tehre below one milion? 1,000,000
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>بررسی اول دایره‌ای</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/055-circular-prime-check/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/055-circular-prime-check/</guid><description>&lt;p&gt;&lt;strong&gt;#055&lt;/strong&gt; · &lt;strong&gt;Circular Prime Check&lt;/strong&gt; · &lt;code&gt;math&lt;/code&gt; · &lt;code&gt;medium&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/055-circular-prime-check/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id="circular-prime"&gt;Circular prime&lt;/h1&gt;
&lt;p&gt;برنامه ای بنویسید که چک کند عددی circular prime هست یا خیر.&lt;/p&gt;
&lt;p&gt;عدد circular prime عددی است که با هر جابه جایی ارقامش، باز عددی اول باشد.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Test1 Input:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;197
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Test1 Output:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;True
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id="توضیح-تست-۱"&gt;توضیح تست ۱&lt;/h3&gt;
&lt;p&gt;عدد 197 به اعداد زیر تبدیل میشود که همه آنها عددی اول هستند.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;197
719
971
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>چرخش کاراکترهای رشته</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/080-rotate-string-chars/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/080-rotate-string-chars/</guid><description>&lt;p&gt;&lt;strong&gt;#080&lt;/strong&gt; · &lt;strong&gt;Rotate String Chars&lt;/strong&gt; · &lt;code&gt;strings&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/080-rotate-string-chars/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id="rotate-character"&gt;Rotate Character&lt;/h1&gt;
&lt;p&gt;برنامه ای بنویسید که به تعداد گفته شده، کاراکتر های یک رشته را بچرخاند!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ورودی:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;در خط اول ورودی، به شما رشته داده خواهد شد و در خط دوم به شما عددی مثبت داده خواهد شد.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;خروجی:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;در تنها خط خروجی جواب را چاپ کنید!&lt;/p&gt;
&lt;h2 id="input-1"&gt;Input-1:&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;amir
4
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="output-1"&gt;Output-1:&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;amir
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="input-2"&gt;Input-2:&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;amir
5
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="output-2"&gt;Output-2:&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;mira
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="input-3"&gt;Input-3:&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;amir
543
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="output-3"&gt;Output-3:&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;rami
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>