1.2. Basic Python expression and statement Learning automate the boring stuff with Python

(Comments)

This is my personal note from what I relearn about Python. Lately, I want to activate again my muscle memory. And I want to remember it well. Therefore I will try to make it in the document that I remember. And this blog will suit the idea. 

1.2. Basic Python expression and statement Learning automate the boring stuff with Python

Theory

I also will keep it in Trinket for the emulator. So if I forget I always can come back. 

Don't forget to also check my YT channel for it. 

So the lesson today is related to a couple of important points. 

Example

And when it connected with the summary

Summary

  1. An instruction that evaluates to a single value is an expression. An instruction that doesn't is a statement.
  2. IDLE is an editor.
  3. The interactive shell window has the >>> prompt.
  4. The file editor window is where you enter code for complete programs.
  5. Data types: int, float, string
  6. Strings hold text and begin and end with quotes: ‘Hello world!'
  7. Values can be stored in variables: spam = 42
  8. Variables can be used anywhere values can be used in expressions: spam + 1

Current rating: 5

Comments

Riddles

22nd Jul- 2020, by: Editor in Chief
524 Shares 4 Comments
Generic placeholder image
20 Oct- 2019, by: Editor in Chief
524 Shares 4 Comments
Generic placeholder image
20Aug- 2019, by: Editor in Chief
524 Shares 4 Comments

Economics

10Aug- 2019, by: Editor in Chief
424 Shares 4 Comments
Generic placeholder image
10Aug- 2015, by: Editor in Chief
424 Shares 4 Comments

More News  »

Kim Kardashian West has filed for divorce from Kanye West

Recent news

Reported from CNN, Kim Kardashian West has filed for divorce from Kanye West, a court clerk for Los Angeles Superior Court confirmed to CNN on Friday.

read more
1 week, 3 days ago

Formula in finding the area of a circle

Recent news

What is a circle and what the formula to find them? 

read more
1 month ago

Indonesian book for kids

Recent news

Indonesian books for kids

read more
1 month ago

Test the formula from Mathjax

Recent news

When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\]

read more
1 month ago

13.39 Using the request module to download the website

Recent news
1 month, 3 weeks ago

13.30 Download the information of the site using Beautiful Soup

Recent news

Download the information of the site using Beautiful Soup

Intro

The beautiful soup has a better way of parsing HTML in comparison with request

read more
1 month, 3 weeks ago

Debug error Could not install packages due to an EnvironmentError: [Errno 13]

Recent news
1 month, 3 weeks ago

13.38 Download the site with the module webbrowser

Recent news
1 month, 3 weeks ago

More News »

Generic placeholder image

Collaboratively administrate empowered markets via plug-and-play networks. Dynamically procrastinate B2C users after installed base benefits. Dramatically visualize customer directed convergence without