<?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>Counting on Python Exercises</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/tags/counting/</link><description>Recent content in Counting 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/counting/index.xml" rel="self" type="application/rss+xml"/><item><title>بالین</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/034-elevator-floor-calculation/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/034-elevator-floor-calculation/</guid><description>&lt;p&gt;&lt;strong&gt;#034&lt;/strong&gt; · &lt;strong&gt;Elevator Floor Calculation&lt;/strong&gt; · &lt;code&gt;simulation&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://quera.org/problemset/175292/"&gt;منبع سوال&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Amirmahdikahdouii/Python-Exercises/blob/master/problems/034-elevator-floor-calculation/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id="بالین"&gt;بالین:&lt;/h1&gt;
&lt;p&gt;برای مشاهده صورت سوال و مثال ها به صفحه سوال در &lt;a href="https://quera.org/problemset/175292/"&gt;کوئرا&lt;/a&gt; برید!&lt;/p&gt;</description></item><item><title>بالین</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/047-elevator-floor-balin/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/047-elevator-floor-balin/</guid><description>&lt;p&gt;&lt;strong&gt;#047&lt;/strong&gt; · &lt;strong&gt;Elevator Floor Balin&lt;/strong&gt; · &lt;code&gt;simulation&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://quera.org/problemset/175884/"&gt;منبع سوال&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Amirmahdikahdouii/Python-Exercises/blob/master/problems/047-elevator-floor-balin/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id="بالین"&gt;بالین&lt;/h1&gt;
&lt;p&gt;صورت سوال به همراه تست کیس هارا در &lt;a href="https://quera.org/problemset/175884/"&gt;quera.org&lt;/a&gt; بخوانید!&lt;/p&gt;</description></item><item><title>تعداد اعداد اول n رقمی</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/001-count-n-digit-primes/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/001-count-n-digit-primes/</guid><description>&lt;p&gt;&lt;strong&gt;#001&lt;/strong&gt; · &lt;strong&gt;Count N-Digit Primes&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/001-count-n-digit-primes/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;استاد پارسا از او خواسته تا تعداد اعداد اول n رقمی را پیدا کند.
پارسا حوصله عملیات جبری روی کاغذ را ندارد و از شما کمک خواسته تا برایش این مسئله را حل کنید.&lt;/p&gt;
&lt;h1 id="ورودی"&gt;ورودی:&lt;/h1&gt;
&lt;p&gt;`
ورودی عددی صحیح n ,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;0 &amp;lt; n &amp;lt; 6
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;`&lt;/p&gt;
&lt;h1 id="خروجی"&gt;خروجی:&lt;/h1&gt;
&lt;p&gt;&lt;code&gt;خروجی، یک عدد صحیح است که نمایانگر تعداد اعداد اول n رقمی میباشد.&lt;/code&gt;&lt;/p&gt;</description></item><item><title>جیغ زدن</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/035-scream-count-answer/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/035-scream-count-answer/</guid><description>&lt;p&gt;&lt;strong&gt;#035&lt;/strong&gt; · &lt;strong&gt;Scream Count Answer&lt;/strong&gt; · &lt;code&gt;math&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://quera.org/problemset/175187/"&gt;منبع سوال&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Amirmahdikahdouii/Python-Exercises/blob/master/problems/035-scream-count-answer/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id="جیغ-زدن"&gt;جیغ زدن:&lt;/h1&gt;
&lt;p&gt;برای مشاهده صورت سوال و مثال ها به صفحه سوال در &lt;a href="https://quera.org/problemset/175187/"&gt;کوئرا&lt;/a&gt; برید!&lt;/p&gt;</description></item><item><title>چهارعدد</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/044-divisible-by-any-count/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/044-divisible-by-any-count/</guid><description>&lt;p&gt;&lt;strong&gt;#044&lt;/strong&gt; · &lt;strong&gt;Divisible By Any Count&lt;/strong&gt; · &lt;code&gt;math&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://quera.org/problemset/177663/"&gt;منبع سوال&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Amirmahdikahdouii/Python-Exercises/blob/master/problems/044-divisible-by-any-count/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id="چهارعدد"&gt;چهارعدد&lt;/h1&gt;
&lt;p&gt;صورت سوال را به همراه تست کیس ها در این لینک از &lt;a href="https://quera.org/problemset/177663/"&gt;quera.org&lt;/a&gt; ببینید!&lt;/p&gt;</description></item><item><title>شمارش ارقام زوج</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/025-count-even-digits/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/025-count-even-digits/</guid><description>&lt;p&gt;&lt;strong&gt;#025&lt;/strong&gt; · &lt;strong&gt;Count Even Digits&lt;/strong&gt; · &lt;code&gt;math&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/025-count-even-digits/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;برنامه ای بنویسید که تعدادی عدد بخواند و تعداد رقم های زوج را در مجموع چاپ کند.
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>عدد تقریبا خوش‌شانس</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/022-nearly-lucky-number/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/022-nearly-lucky-number/</guid><description>&lt;p&gt;&lt;strong&gt;#022&lt;/strong&gt; · &lt;strong&gt;Nearly Lucky Number&lt;/strong&gt; · &lt;code&gt;strings&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/022-nearly-lucky-number/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;
Petya loves lucky numbers. We all know that lucky numbers are the positive integers whose decimal
representations contain only the lucky digits 4 and 7.
For Example numbers: 47, 477, 4 are lucky and 5, 17, 467 are not.
Unfortunately, not all numbers are lucky. Petya calls a number nearly lucky if the number of
lucky digits in it is a lucky number.
Input:
the only line contains an integer n (1 Because Count of lucky number in 400447 is a lucky number also (4)!
### Example Input:
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;7747774
&lt;/code&gt;&lt;/pre&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;### Example Output:
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;YES
&lt;/code&gt;&lt;/pre&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;
### Example Input:
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;1000000000000000000000000000
&lt;/code&gt;&lt;/pre&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;### Example Output:
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;NO
&lt;/code&gt;&lt;/pre&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>عدد تنک</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/023-thin-number-check/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/023-thin-number-check/</guid><description>&lt;p&gt;&lt;strong&gt;#023&lt;/strong&gt; · &lt;strong&gt;Thin Number Check&lt;/strong&gt; · &lt;code&gt;math&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/023-thin-number-check/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;
برتامه ای را بنویسید که عددی را از ورودی بخواند و مشخص کند عدد وارد شده عدد تنک هست یا خیر.
عدد تنک عددی است که تعداد ارقام صفر آن از تعداد ارقام غیر صفر آن بیشتر باشد.
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>