#Solution for #Assignment by @MINtaa911
You can forward your feedback via @pyDiscussion
#Guess the number
from random import randint
def guess_number():
num = randint(0,20)
guess = int(input("Enter your guess number: "))
while(num != guess):
if(guess > num):
print("Your guess is too high")
elif(guess < num):
print("your guess is too low")
else:
break
guess = int(input("Enter your guess number: "))
print("you win")
guess_number()
#LearnDataScience #LearnPython #StayHome #PreventCOVId19
You can forward your feedback via @pyDiscussion
#Guess the number
from random import randint
def guess_number():
num = randint(0,20)
guess = int(input("Enter your guess number: "))
while(num != guess):
if(guess > num):
print("Your guess is too high")
elif(guess < num):
print("your guess is too low")
else:
break
guess = int(input("Enter your guess number: "))
print("you win")
guess_number()
#LearnDataScience #LearnPython #StayHome #PreventCOVId19
Another #Solution for #Assignment by @Amalright
You can forward your feedback via @pyDiscussion
from random import*
Def fun_game(number_chosen):
data=randrange(0,20)
if(nuber_chosen> data):
print("too much")
elif(nuber_chosen < data):
print("too low")
else:
print("correct answer :")
J = 1
While(j !=0)
choice =int(input("Enter 1 to continue"))
if(choice ==1):
choice =int(input("Enter your try"))
fun_game(choice)
else:
j =0
#StayHome #PreventCOVId19 #LearnPython #LearnDataScience #LearnRandomNumber
You can forward your feedback via @pyDiscussion
from random import*
Def fun_game(number_chosen):
data=randrange(0,20)
if(nuber_chosen> data):
print("too much")
elif(nuber_chosen < data):
print("too low")
else:
print("correct answer :")
J = 1
While(j !=0)
choice =int(input("Enter 1 to continue"))
if(choice ==1):
choice =int(input("Enter your try"))
fun_game(choice)
else:
j =0
#StayHome #PreventCOVId19 #LearnPython #LearnDataScience #LearnRandomNumber
Python is a programming language. Like other languages, it gives us a way to communicate ideas. In the case of a programming language, these ideas are “commands” that people use to communicate with a computer!
We convey our commands to the computer by writing them in a text file using a programming language. These files are called programs. Running a program means telling a computer to read the text file, translate it to the set of operations that it understands, and perform those actions.
#LearnPython #LearnDataAnalysis #StayHome #PreventCOVID19
We convey our commands to the computer by writing them in a text file using a programming language. These files are called programs. Running a program means telling a computer to read the text file, translate it to the set of operations that it understands, and perform those actions.
#LearnPython #LearnDataAnalysis #StayHome #PreventCOVID19
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?
Final Results
26%
^
4%
*
70%
**
AWS Machine Learning Scholarship Program
https://www.udacity.com/scholarships/aws-machine-learning-scholarship-program?bsft_eid=bc85a78a-5d43-4e0c-5683-0f6e5336ecb1&utm_campaign=sch_600_2020-04-30_ndxxx_aws-ml-pre-reg-announcement_global&utm_source=blueshift&utm_medium=email&utm_content=sch_600_2020-04-30_ndxxx_aws-ml-pre-reg-announcement_global&bsft_clkid=4a1b2411-3bcd-4ccf-974a-23562b20e7e6&bsft_uid=6e0e8d28-5982-44df-b0e5-45e388c364e0&bsft_mid=2e378f52-c942-4dde-966a-37664fbc4cb8&bsft_ek=2020-04-30T21:02:38Z&bsft_mime_type=html
#StayHome #PreventCOVId19 #LearnMachineLearning
https://www.udacity.com/scholarships/aws-machine-learning-scholarship-program?bsft_eid=bc85a78a-5d43-4e0c-5683-0f6e5336ecb1&utm_campaign=sch_600_2020-04-30_ndxxx_aws-ml-pre-reg-announcement_global&utm_source=blueshift&utm_medium=email&utm_content=sch_600_2020-04-30_ndxxx_aws-ml-pre-reg-announcement_global&bsft_clkid=4a1b2411-3bcd-4ccf-974a-23562b20e7e6&bsft_uid=6e0e8d28-5982-44df-b0e5-45e388c364e0&bsft_mid=2e378f52-c942-4dde-966a-37664fbc4cb8&bsft_ek=2020-04-30T21:02:38Z&bsft_mime_type=html
#StayHome #PreventCOVId19 #LearnMachineLearning
Udacity
Become an AWS Machine Learning Engineer | Udacity
AWS and Udacity have partnered to create an all-new scholarship for our Machine Learning Nanodegree program.
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
Does this channel helpful?
Anonymous Poll
63%
Yes, it is helpful
12%
No, it is not
25%
Yes, but needs improve. Suggest us.
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
6 Reasons Now’s the Perfect Time to Commit to Coding
https://news.codecademy.com/6-reasons-to-learn-to-code/?utm_source=customer_io&utm_medium=email&utm_campaign=worker_support&utm_content=6reasons
https://news.codecademy.com/6-reasons-to-learn-to-code/?utm_source=customer_io&utm_medium=email&utm_campaign=worker_support&utm_content=6reasons
Codecademy
6 Reasons Now’s the Perfect Time to Commit to Coding
We believe that learning a new skill during this challenging time can provide a sense of empowerment and so much more. Here are six reasons to learn to code while you’re at home.
Jupyter Notebooks
Jupyter Notebooks are an extremely powerful tool for data analysis because they allow you to run python commands and see outputs within the structure of a notebook, which is helpful because in Data Analysis you are often running short commands to produce the data/visualizations you need for a certain investigation.
To know how to install Jupyter notebook, looking at the following short video
https://www.youtube.com/watch?v=5Yx6h7Mgiv0
Jupyter Notebooks are an extremely powerful tool for data analysis because they allow you to run python commands and see outputs within the structure of a notebook, which is helpful because in Data Analysis you are often running short commands to produce the data/visualizations you need for a certain investigation.
To know how to install Jupyter notebook, looking at the following short video
https://www.youtube.com/watch?v=5Yx6h7Mgiv0
YouTube
Installing Jupyter Notebook on Linux
This tutorial shows you how to install jupyter notebook on Linux Machine for Data Science.
Sometimes I share you some python books which may help you to study python. Because #PYTHON is the powerful tool for Data Science, Machine Learning, Artificial Intelligence, and also to develop desktop application, web application etc. Ask @pydiscussion
#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