MY Programming

Python Basics Tutorial 1 Output , Input & Variables

Python Icon

Hey Ya Folks, Wellcome to my Python Tutorial.

 

Download Python on https://www.python.org/ and install it.

Now you a ready to start programming with Python.

 

With Output you can show Text in the Console

Output: print('Hello World')

Variables can contain Text, a Letter or different Numbertypes.

Variabletypes: 

  • String: a = 'Hello World'
  • Integer b = 1
  • Double c = 1.0
  • Float d = 1.1
  • Character e = 'G'

To show the Value of Variable e just type:  print(e)

 For the case you want to put out two or more Variables in one print command you can type:

print(a, b , c , d, e)

In the case of you want add one string to another you can just type:

a = hello

b = World

 print(a + b)

For puting in Values  to a Variable you can use : a = input('Please give me a Value for Variable a:')

 

 

I hope that was helpful, thanks for reading.

 

 

 

How do you rate this article?

2


Slash13
Slash13

I like making music, programming, gaming, blogging.


MY Programming
MY Programming

In this blog i post my programms.

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.

Page not displaying correctly?