What is Python - Deepstash
What is Python

What is Python

Ideas, facts & insights covering these topics:

8 ideas

Ā·

11 reads

Explore the World's Best Ideas

Join today and uncover 100+ curated journeys from 50+ topics. Unlock access to our mobile app with extensive features.

What Is Python

What Is Python

Python is low-level coding language, meaning that it is meant for oneā€™s self to understand. Python is easy to start learn for beginners and is used for a lots things. Google, YouTube, and even Netflix use Python along with other companies and organizations.

1

3 reads

The Basics (output Text To Screen)

The Basics (output Text To Screen)

To output text the console of terminal screen in Python 3 use the command print(ā€œyour textā€). You can replace the your text with anything like print(ā€œHow are youā€)

1

2 reads

The Basics (allow User Input)

The Basics (allow User Input)

To allow a user to input a variable, number, or some text in Python 3 you will use the input function. input(ā€œyour textā€) this will pause the program and allow the user to input something. To save the users input as a variable for later use use this input function. Your_variable = input(ā€œyour textā€) this will allow the program to save the users input as a variable which in this case the users input is saved as Your_variable and this can also be replaced with custom variable name

1

2 reads

The Basics (variables)

The Basics (variables)

Variable in Python 3 are important. Almost any program you write or use will probably use variables. To make a variable, type this in your code when needed. Your_variable = 4 you can this variable from a integer to a string using ā€œyour text ā€ after the equals sign of your True of False after the equals sign to make a Boolean variable. To output a variable to the screen use the print function like this. print(score) in Order to do this you need to state your variable before the print function. To add a variable in the middle of a print function use this function. print(ā€œyour score isā€ + score)

1

0 reads

The Basics (if Else Statements)

The Basics (if Else Statements)

if else statements are also very important. To use a if else statement use this function if score == 4:

print(ā€œyour score is goodā€)

else:

print(ā€œ your score is excellentā€)

Anything after the else or if statement on the next should be indented to be apart of the statement(s). Your statement can equal a number, text, of a Boolean.

To replace the double equals sign

== Exactly equal

!= Not equal

> Greater than

< Less than

>= Greater than equal to

1

1 read

The Basics (ending The Program Properly)

The Basics (ending The Program Properly)

To end the program properly at certain point use the quit command which is

quit()

this will properly end the program

1

2 reads

My Simple Program In Python 3

My Simple Program In Python 3

In the picture above it displays a simple program I made from the tutorial you have just read.

1

1 read

The End

The End

you have now made it to the end of the tutorial. I hope you have learn some good information for this stash. You should be able to now create a small program in Python 3 like me. Comment and like! Follow for more coding tips.

1

0 reads

IDEAS CURATED BY

fluffy705

I am a student wanting to know more about the world

CURATOR'S NOTE

Remember even I cover Python 3.10 all version of Python are case-sensitive so type the functions word for word. If you donā€™t understand something in this tutorial search it up on the web. Comment and like. Follow for more coding tips and tricks!

ā€œ

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

ā€”

100+ Learning Journeys

ā€”

Access to 200,000+ ideas

ā€”

Access to the mobile app

ā€”

Unlimited idea saving

ā€”

ā€”

Unlimited history

ā€”

ā€”

Unlimited listening to ideas

ā€”

ā€”

Downloading & offline access

ā€”

ā€”

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates