100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Python programming part-1

Rating
-
Sold
-
Pages
4
Uploaded on
27-03-2023
Written in
2022/2023

Python language a particular Caputo so Python language up the intraday good yo-hwan Rossum Abdeen trehala 1989 Lokhande pick up a third language. In the Python when the Mottola language are compared form ozone are he is it one of the features with Canaria advantageous Erica. In the inner is an interpreted language interactive language again assalam re mo more light. The beginners language up in Savannah rambha base is the Condor prior knowledge on okay Dante nelli normal English Samuel Katherine Jolly in there i'ma cut the clowning a directin only putting others. Python is free and open source so open source language subpoena metal available article from as a license to version courier. or C++ or Java code cooler in a Python code and Armando will account when they use punica who do are the characteristics the portable portable a budino in la platform alai environment lean on around polymer you must the programming language Korea in order language in Amanda.

Show more Read less
Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
March 27, 2023
Number of pages
4
Written in
2022/2023
Type
Summary

Subjects

Content preview

Python for Beginners - Learn Python in 1 Hour
Programming with Mosh
Iphone or iPad you need to install a couple of other things first so you go to the App Store and
search for Pycharm. Then in the App Store click on the install button. Now. Once Pycharm is
installed, you can open it up by clicking on this icon. Here in your downloads folder. You should
also have a.py file. So let's open that up now. The first thing you 're going to do is create a new
project so let's do that by clicking on this green plus sign here in your project explorer window
and type in Python. This is the name of your project. Now let's choose a location for your project
so we're going to choose a folder on our computer called projects and then click on the create
Button Now let's change some settings inside of Pycharm. So first thing you 're going to. To
want to do is change the language of your project to Python, So inside of pycharm. Go to File >
Settings > Project Settings and in the Languages section change Python to the language of your
project. Now next thing you 're going to want to do is set up your project folder so inside of
pycharm go to File > Settings > Project Structure and in the Project Folder section click on the
Browse button and then select the folder where you want your project files to live so now Your
project is set up and ready to go all right let's start writing some code. We're going to start with
the simplest code possible and that's a hello world program. In Python. A Hello world program is
simply a program that prints out hello world so let's open up our.py file and enter this code here.
Here import sys [UNK] world!") all right so we've imported the Sys module and then we've
printed out [UNK] world!" now Let's save our file by clicking on this green button here in your
editor window and call it Hello.py now let's run our program by clicking on this green run button
here inside of pycharm and you'll see that our program has printed out [UNK] world!" all right
that's our first simple code block in Python now Let's take a look at some more code blocks in
Python. First thing we'll want to do is create a variable, so let's open up our hello.py file again
and enter this code def [UNK] [UNK] world!") all right so we've defined a function called say
—hello() and inside of say —hello() we're going to print out [UNK] world!" now let's save our file
once again say we want to declare a variable called price. We would type price and then after
we type the name of the variable. We would put a colon and then the value of that variable. So
in this case, the value of this variable will be 12.99. So we can use this variable anywhere inside
our Python code now let's say we want to print the value of this variable. We can do that by
simply writing print price and then after that we would put a period and then the value of the
variable. So in this case the code would print out 12.99 alright. Now let 's say we wanted to
change the value of this variable. We can do that by simply typing new value for price and then
after that we would type a colon and then the new value of the variable. So in this case the code
would print out 13.00 alright. Now let's say we wanted to delete this variable. We can do that by
simply typing delete price and then after that we would type a period and then hit enter so In this
case, the code would delete the variable called price Alright. Now let's talk about lists. Let's say
we have a list of items and we want to display. each item in turn on our application window so to
do that we need to use a for loop so to declare a for loop. We would type for item in list, and
then after that we would type parenthesis, then the list item and then after that hit enter so In
this case, the code would run for each item in the list called list and then it would go inside the
parentheses and it would assign the item inside those parentheses to the variable called item.
So in this case, the code would print out apple Banana cherry pineapple, so you can see how
this works if you wanted to change what was inside those parentheses. You could do that by
$9.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
rbggaming

Also available in package deal

Get to know the seller

Seller avatar
rbggaming
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions