<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Phoenix</title>
    <description>The latest articles on DEV Community by Phoenix (@00000).</description>
    <link>https://dev.to/00000</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F768686%2F23d25a69-782f-484e-b334-6471b4fbcaa2.png</url>
      <title>DEV Community: Phoenix</title>
      <link>https://dev.to/00000</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/00000"/>
    <language>en</language>
    <item>
      <title>Generators and yield in python 🤓</title>
      <dc:creator>Phoenix</dc:creator>
      <pubDate>Sat, 18 Dec 2021 20:48:38 +0000</pubDate>
      <link>https://dev.to/00000/generators-and-yield-in-python-29do</link>
      <guid>https://dev.to/00000/generators-and-yield-in-python-29do</guid>
      <description>&lt;h2&gt;
  
  
  Generators
&lt;/h2&gt;

&lt;p&gt;Generators are functions that can be stopped while running and then resumed. These functions return an object that can be scrolled. Unlike lists, generators are lazy, which causes the calculation and evaluation of a phrase to be delayed as much as possible and to be calculated as soon as it was needed. These functions make memory usage more efficient when working with large data sets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Differences between generators and normal Python functions:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;To call the next values ​​in the generator, we use the next () method.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In normal functions we use return to return values, but in generator we use yield (the yield statement acts to stop the function and save its status to continue working in the future from where it left off).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Generators are also iterators, meaning that the classes we define have the __ (iter__) method defined in them.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Example of generator
&lt;/h2&gt;

&lt;p&gt;In the following code we have a generator function that takes the list as an argument and returns the sum of the numbers of its elements:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def myGenerator(l):  
     total = 0
     for n in l:
       total += n
       yield total
mygenerator = myGenerator([15,10, 7])
print(mygenerator)
print(next(mygenerator))
print(next(mygenerator))
print(next(mygenerator))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;generator object myGenerator at 0x0000026B84B6C150&amp;gt;&lt;br&gt;
    15&lt;br&gt;
    25&lt;br&gt;
    32&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;We see that a new value is displayed for each call of the next method. If you re-read the function, you will get an error saying "You can not navigate".&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Traceback (most recent call last):&lt;br&gt;
  File "generators.py", line 13, in &amp;lt;module&amp;gt;&lt;br&gt;
    print(next(mygenerator))&lt;br&gt;
StopIteration&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Do not forget to like!&lt;br&gt;
Bye until the next post👋😘&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to get a summary of the a page in Wikipedia?🤔</title>
      <dc:creator>Phoenix</dc:creator>
      <pubDate>Sat, 18 Dec 2021 20:29:28 +0000</pubDate>
      <link>https://dev.to/00000/how-to-get-a-summary-of-the-a-page-in-wikipedia-39im</link>
      <guid>https://dev.to/00000/how-to-get-a-summary-of-the-a-page-in-wikipedia-39im</guid>
      <description>&lt;h2&gt;
  
  
  Hi, friends!
&lt;/h2&gt;

&lt;p&gt;You Can use the Wikipedia API for this work;&lt;/p&gt;

&lt;p&gt;Look this Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import requests as rq

Query = "iran"#What Do You Want To Search In wikipedia
Lang = "en"#Your Language
Url = f"https://{Lang}.wikipedia.org/api/rest_v1/page/summary/{Query}"

Result = rq.get(Url).json()['extract']

print(str(Result))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run and See The Result.&lt;/p&gt;

&lt;p&gt;Do not forget to like!&lt;br&gt;
Bye until the next post👋&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Learn Python - 1. Start with python🥳</title>
      <dc:creator>Phoenix</dc:creator>
      <pubDate>Wed, 15 Dec 2021 20:16:04 +0000</pubDate>
      <link>https://dev.to/00000/learn-python-1-stay-tuned-for-the-next-posts-128p</link>
      <guid>https://dev.to/00000/learn-python-1-stay-tuned-for-the-next-posts-128p</guid>
      <description>&lt;h2&gt;
  
  
  Install Python
&lt;/h2&gt;

&lt;p&gt;Python is installed by default on Mac and Linux operating systems. To check if Python is installed on Windows, first open cmd and type the following command in it: &lt;code&gt;C: \ Users \ Your Name&amp;gt; python –version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For Mac and Linux, type the above command on the command line or terminal. If Python is not installed on your computer, you can download it from python.org.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running Python Programs
&lt;/h2&gt;

&lt;p&gt;As mentioned earlier, Python is an interpretive programming language. This means that you, as a developer, write Python (py.) Files in a text editor or development environment (IDE) such as Eclipse and execute them with the Python interpreter.&lt;/p&gt;

&lt;p&gt;The following command in the command line executes a python file called helloworld.py:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;C:\Users\Your Name&amp;gt;python helloworld.py&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Let's write our first program in a Python file called helloworld.py&lt;/p&gt;

&lt;p&gt;&lt;code&gt;print("Hello, World!")&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To run the program, just run the above command line command. The output is as follows:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Hello, World!&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;congratulation! You wrote your first program in Python🥳🥳&lt;/p&gt;

&lt;h2&gt;
  
  
  Python Command Line
&lt;/h2&gt;

&lt;p&gt;To test shortcodes, you can write them on the command line to a file. This method is easier and faster. Open the operating system command line and type and run the phrase python. There you can write any program by Python:&lt;/p&gt;

&lt;p&gt;`C:\Users\Your Name&amp;gt;python&lt;br&gt;
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32&lt;br&gt;
Type “help”, “copyright”, “credits” or “license” for more information.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;print(“Hello, World!”)`&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;
&lt;br&gt;
&lt;/blockquote&gt;

&lt;p&gt;Which prints the phrase inside the quotation mark in the same place. You can use exit () to exit the Python command line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Structure of Python Commands
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Indentations in Python
&lt;/h2&gt;

&lt;p&gt;While Tab is used for readability in programming languages, this is a must in Python. Python uses indentations to specify blocks of code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;if 5 &amp;gt; 2:&lt;br&gt;
  print("Five is greater than two!")&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you run the following commands, Python will give an error:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;if 5 &amp;gt; 2:&lt;br&gt;
print("Five is greater than two!")&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Comments Descriptions are used to explain part of the code and document the code. Comments start with a footnote and continue to the end of the same line:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;#This is a comment.&lt;br&gt;
print("Hello, World!")&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Python has also developed a documentation feature called docstrings. docstrings can contain one or more lines. The docstring begins and ends with three quotation marks:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;"""This is a&lt;br&gt;
multiline docstring."""&lt;br&gt;
print("Hello, World!")&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The start-up session with Python is over. In the next session, we will teach variables in Python.&lt;/p&gt;

&lt;p&gt;Do not forget to like!&lt;br&gt;
Bye until the next post👋&lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Text to audio Application</title>
      <dc:creator>Phoenix</dc:creator>
      <pubDate>Wed, 15 Dec 2021 19:51:39 +0000</pubDate>
      <link>https://dev.to/00000/text-to-audio-application-4op0</link>
      <guid>https://dev.to/00000/text-to-audio-application-4op0</guid>
      <description>&lt;p&gt;Hi developers,&lt;br&gt;
This is an Android application for say a text as an audio file with mp3 format.&lt;br&gt;
What do you think about this program?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://drive.google.com/file/d/16nbWwrbEGZ5ugIwLXCDyjixhAP_cUxMO/view?usp=drivesdk"&gt;TTA APK Link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>flask</category>
      <category>python</category>
      <category>b4a</category>
    </item>
    <item>
      <title>What is the lifestyle of a programmer?</title>
      <dc:creator>Phoenix</dc:creator>
      <pubDate>Wed, 08 Dec 2021 20:09:57 +0000</pubDate>
      <link>https://dev.to/00000/what-is-the-lifestyle-of-a-programmer-3140</link>
      <guid>https://dev.to/00000/what-is-the-lifestyle-of-a-programmer-3140</guid>
      <description>&lt;p&gt;&lt;strong&gt;You answer this question!&lt;/strong&gt;&lt;br&gt;
What is your lifestyle as a programmer?&lt;br&gt;
Please write in the comments!&lt;/p&gt;

</description>
      <category>programmer</category>
    </item>
    <item>
      <title>Learn Python. Stay tuned for the next posts🥳</title>
      <dc:creator>Phoenix</dc:creator>
      <pubDate>Mon, 06 Dec 2021 11:48:20 +0000</pubDate>
      <link>https://dev.to/00000/learn-python-stay-tuned-for-the-next-posts-2bl9</link>
      <guid>https://dev.to/00000/learn-python-stay-tuned-for-the-next-posts-2bl9</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;session one&lt;/strong&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  What is Python?
&lt;/h2&gt;

&lt;p&gt;Python is a popular programming language developed in 1991 by Guido van Rossum.&lt;/p&gt;

&lt;h2&gt;
  
  
  This language is used in the following cases:
&lt;/h2&gt;

&lt;p&gt;Web development (server side)&lt;br&gt;
software development&lt;br&gt;
Mathematics&lt;br&gt;
And …&lt;/p&gt;

&lt;h2&gt;
  
  
  Use of Python programming language
&lt;/h2&gt;

&lt;p&gt;Python can be used to build web applications on the server&lt;br&gt;
Python can be used alongside software to build workflows&lt;br&gt;
Python can connect to database systems and read and modify files&lt;br&gt;
Python can be used in programming and managing big data and performing complex mathematical calculations.&lt;br&gt;
And…&lt;/p&gt;

&lt;h2&gt;
  
  
  Why should we learn Python?
&lt;/h2&gt;

&lt;p&gt;Python runs on various platforms (Windows, Mac, Linux, Raspberry Pi,…)&lt;br&gt;
Python has a simple syntax&lt;br&gt;
The grammatical structure of this language is such that it allows developers to write less code than other languages&lt;br&gt;
Python runs on an interpreter, meaning it does not need to be compiled and runs immediately&lt;br&gt;
Python supports a variety of programming methods such as procedural, object-oriented, and functional&lt;/p&gt;

&lt;p&gt;Comparing the grammatical structure of Python with other programming languages&lt;br&gt;
The purpose of Python's design is to make it more readable and similar in English syntax to the effect of mathematics&lt;br&gt;
Each Python command is defined in one line, while in most programming languages ​​the commands are; They end&lt;br&gt;
Python uses indentation and tabs to define blocks of code, such as blocks of functions and classes, while brackets use brackets to do this in other languages.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;Python programming language&lt;/strong&gt; introduction session is also over.&lt;/p&gt;

&lt;p&gt;In the next session, we will teach you how to start working with Python. Stay with us&lt;/p&gt;

&lt;p&gt;Do not forget to like!&lt;br&gt;
Bye until the next post&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>What is Python Programming Language?🤔😜🤭</title>
      <dc:creator>Phoenix</dc:creator>
      <pubDate>Mon, 06 Dec 2021 11:26:17 +0000</pubDate>
      <link>https://dev.to/00000/what-is-python-programming-language-2ned</link>
      <guid>https://dev.to/00000/what-is-python-programming-language-2ned</guid>
      <description>&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Python
&lt;/h2&gt;

&lt;p&gt;:**&lt;br&gt;
Python is a general-purpose, high-level, object-oriented, scripting, interpretive, and open source programming language developed by Khodo van Rassam himself in 1991 in the Netherlands.&lt;br&gt;
The philosophy of creating this language is to emphasize the principle of high readability and brevity and the relative efficiency of programs written in this language.&lt;br&gt;
Unlike other programming languages ​​where code blocks were defined in parentheses, this language uses spaces and tabs to specify blocks.&lt;br&gt;
Python supports a variety of programming styles such as object-oriented and function-oriented.&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h3&gt;
  
  
  History:
&lt;/h3&gt;

&lt;p&gt;**&lt;br&gt;
Python was created in the late 1980s by Khodo van Rossum of the National Institute for Mathematical and Computer Research (CWI) in the Netherlands.&lt;br&gt;
The goal was to create an alternative to ABC that could handle exceptions.&lt;br&gt;
In 1991, Fan Codi released the version 0.9.0 tag. In this version there were improvements to classes with inheritance, exception processing, functions and data types list, dict and str.&lt;br&gt;
Also in 1994, version 1.0 of this language was released. The main features of this version included functional programming tools such as lambda, map and reduce.&lt;/p&gt;

&lt;p&gt;Do not forget to like!😘&lt;br&gt;
Bye until the next post👋&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>opensource</category>
    </item>
    <item>
      <title>😎 Convert Video To Text 😍</title>
      <dc:creator>Phoenix</dc:creator>
      <pubDate>Sun, 05 Dec 2021 16:29:38 +0000</pubDate>
      <link>https://dev.to/00000/convert-video-to-text-47ea</link>
      <guid>https://dev.to/00000/convert-video-to-text-47ea</guid>
      <description>&lt;p&gt;Hi There!&lt;br&gt;
I'm Phoenix. This Is My Frist Post&lt;br&gt;
DVTT-Delta Video To Text-Is a Script Run In Console.&lt;br&gt;
If You Want To Convert Your Video To Text You Cannnnn! Use This Script.&lt;br&gt;
For More Details Go To My &lt;a href="https://github.com/DeltaInc/Video-To-Text"&gt;Github Page&lt;/a&gt;&lt;br&gt;
Buy Until The Next Post🖐🖐🖐😘&lt;/p&gt;

</description>
      <category>python</category>
      <category>ffmpeg</category>
      <category>deltainc</category>
      <category>script</category>
    </item>
  </channel>
</rss>
