#Solution for #Q2
#DataScience #DataCollection
#Collectiondatatype
We will continue discussing on other collection types in next time.
Stay tuned
✅Apply health advises.
#QuarantineYourself
#DataScience #DataCollection
#Collectiondatatype
We will continue discussing on other collection types in next time.
Stay tuned
✅Apply health advises.
#QuarantineYourself
We learn how to analysis data in future data science. You stay at home and learn new futures of Data Science.
Think this is an opportunity to be future Data Scientist.
I share you my knowledge and experience.
#QuarantineYourself #Bioinformatics #DataAnalysis #DataScience
Think this is an opportunity to be future Data Scientist.
I share you my knowledge and experience.
#QuarantineYourself #Bioinformatics #DataAnalysis #DataScience
The analysis shows that the death rate of the following countries are very high. Above 10,0000.
#QuarantineYourself #LearnDataScience #Bioinformatics #Python #Pandas
#QuarantineYourself #LearnDataScience #Bioinformatics #Python #Pandas
You can conclude the result based on the graph shows
#QuarantineYourself #LearnDataScience #Bioinformatics #Python #Pandas #Matplotlib
#QuarantineYourself #LearnDataScience #Bioinformatics #Python #Pandas #Matplotlib
Epython Lab
Python can also perform mathematical exponentiation. In mathematics, you might see an exponent as a superscript number, but typing superscript numbers isn't always easy on modern keyboards. Since which is it?
Thanks for your participation in the Q&A poll. The answer is double asterisks(**)
Example: print(2 ** 3) is 8. 2 the power of 3.
Ask @pyDiscussion if you have any question.
#QuarantineYourself #LearnPython #LearnDataScience
Example: print(2 ** 3) is 8. 2 the power of 3.
Ask @pyDiscussion if you have any question.
#QuarantineYourself #LearnPython #LearnDataScience
The death rate of Somalia and Sudan is high when we compare others. Ethiopia is in good status. Almost 50% are recovered in #Djiboti
#QuarantineYourself #LearnDataScience
#QuarantineYourself #LearnDataScience
#Python is a multi-paradigm, dynamically typed, multipurpose programming language, designed to be quick (to learn, to use, and to understand), and to enforce a clean and uniform syntax. Please note that Python 2 is officially out of support as of January 1, 2020. Therefore automatically shift yourself from Python-2 to the latest and most improved version of python [python-3.x] .
#QuarantineYourself #LearnPython #LearnDataScience
#QuarantineYourself #LearnPython #LearnDataScience
👍1
Reading a File using Python
Computers use file systems to store and retrieve data. Each file is an individual container of related information. If you’ve ever saved a document, downloaded a song, or even sent an email you’ve created a file on some computer somewhere. Even script.py, the Python program you’re editing in the learning environment, is a file.
So, how do we interact with files using Python?
Let’s say we had a file called hello_python.txt with these contents:
script.py
#QuarantineYourself #LearnPython #LearnDataScience
Computers use file systems to store and retrieve data. Each file is an individual container of related information. If you’ve ever saved a document, downloaded a song, or even sent an email you’ve created a file on some computer somewhere. Even script.py, the Python program you’re editing in the learning environment, is a file.
So, how do we interact with files using Python?
Let’s say we had a file called hello_python.txt with these contents:
Python is a powerful tool for Data Ananlysis. So, stay at home and learn python for future Data Science.
We could read that file like this:script.py
with open('hello_python.txt') as python_file:
python_contents = python_file.read()
print(python_contents)
This
opens a file object called python_file and creates a new indented block where you can read the contents of the opened file. We then read the contents of the file python_file using python_file.read() and save the resulting string into the variable python_contents. Then we print python_contents, which outputs the statement written in the above!.#QuarantineYourself #LearnPython #LearnDataScience
Writing a File using Python
In the previous post we have seen that how to open and read a file using python script. Today, I have posting about how to write a file or create your own file using the script.
Reading a file is all well and good, but what if we want to create a file of our own? With Python we can do just that. It turns out that our open() function that we’re using to open a file to read needs another argument to open a file to write to.
script.py
This code creates a new file in the same folder as script.py and gives it the text What an incredible file!. It’s important to note that if there is already a file called generated_file.txt it will completely overwrite that file, erasing whatever its contents were before.
#QuarantineYourself #LearnPython #LearnDataScience
In the previous post we have seen that how to open and read a file using python script. Today, I have posting about how to write a file or create your own file using the script.
Reading a file is all well and good, but what if we want to create a file of our own? With Python we can do just that. It turns out that our open() function that we’re using to open a file to read needs another argument to open a file to write to.
script.py
with open('generated_file.txt', 'w') as gen_file:
gen_file.write("I love python!")
Here we pass the argument 'w' to open() **in order to indicate to open the file in write-mode. The default argument is 'r' and passing 'r' to **open() opens the file in read-mode as we’ve been doing.This code creates a new file in the same folder as script.py and gives it the text What an incredible file!. It’s important to note that if there is already a file called generated_file.txt it will completely overwrite that file, erasing whatever its contents were before.
#QuarantineYourself #LearnPython #LearnDataScience
Forwarded from Epython Lab (Asibeh Tenager)
You can conclude the result based on the graph shows
#QuarantineYourself #LearnDataScience #Bioinformatics #Python #Pandas #Matplotlib
#QuarantineYourself #LearnDataScience #Bioinformatics #Python #Pandas #Matplotlib
👍1
Forwarded from Epython Lab (Asibeh Tenager)
We learn how to analysis data in future data science. You stay at home and learn new futures of Data Science.
Think this is an opportunity to be future Data Scientist.
I share you my knowledge and experience.
#QuarantineYourself #Bioinformatics #DataAnalysis #DataScience
Think this is an opportunity to be future Data Scientist.
I share you my knowledge and experience.
#QuarantineYourself #Bioinformatics #DataAnalysis #DataScience
👍3