Thursday, June 25, 2020

Data Types and Models in Python | Python course for beginners.Python Courses | Session_4

Data Types and Models in Python | Python course for beginners.Python Courses | Session_4


Data Types and Models in Python | Python course for beginners.Python Courses | Session_4

Data Types and Models in Python

                              Data Types and Models impotent All Programming Languages  Not Only in Python you should understand Esaly don't worry let's begin.

Following Topics, We discussing In python 


  1. Numbers
  2. String
  3. List
  4. Tuple
  5. Set
  6. Dictionary

1.Numbers

                Integers and real numbers and complex numbers come under the numbers category. They are mention int, float, and complex class in python.

Example 


>>a=27
>>type(a)
<class 'int'>

>>a=5.5
>>type(a)
<class 'float'>

>>a=27+20j
<Class 'Complex'>
      
   Also, Python has some spacial Automatically find data Types whatever you put in the Script.
This is amazing right!

2.String 

              The string is a Sequence of UNICODE characters. the user can use single quotes or double quotes to represent the strings. strings are immutable object in python 


Example 


>> blog = "Hello techtrainer.site"
>>print("blog[4]=".blog[4]))  #Hello
>>print("s[6,11]"=".s[6,11])   #Tech

3.List

            
             The List is Stored as an ordered sequence of items, these items are mutable items separated by commas are enclosed within square brackets"[]" or list

Example


>> a = [6,3,80,36,40,43]
>>print("a[2] =".a[2]) # Output 80
>>print("a[0.3] =".a[0.3]) #output 6,3,80,36
>>print("a[5] = ".a[5]) #ouput 43



4.Tuple

       A tuple is an ordered sequence of items, the same as the list. The main difference is that tuples are immutable it is defined with parentheses () or tuple() where items are separated by commas.


Example 


>>t=(5,"TechTrainer",1+6j)

>>print("t[1] =".t[1]) #output 5

>>print("t[0.3]=".t[0.3]) #ouput 5,"TechTrainer,1+6j

5.set

          The Set is an unordered collection of unique elements immutable behavior A set defined by values separated by commas inside curly braces {}.


Example 


>>a={10,2,30,400,5}

>>print("a =",a) #output: 10,2,30,400,5

>>print(type(a)) #output <class set>

6.Dictionary 

       
                               The Dictionary is an unordered collection of key-value pairs. The Declaration of the dictionary without any items is written with just two curly braces{}


Example 



>>dict = {'Name':'Prathish','Age':10}

>>print(type(dict))

<class dict>

>>print("dict[1]=".dict[1]);   #Output Name prathish



Variables 


          Python does not have to declare any type of the variable This is handled internally
according to the type of value assigned to the variable.

Example 

 >>>Name = "Parthish"
 >>>age = 10




First step Towards Programming | First step Towards Programming for Python | beginner Level |Session_3

First step Towards Programming  | First step Towards Programming for Python | beginner Level | Session_3



Python as a calculator 

you go to open python IDE First Window Open python shell Mode you can type your code that Shell you got a quick answer following steps guide you how to do! Let's get started.

Number:

   you open a python shell Mode then type following Simple steps, Python has different data types handle numbers we discussing the data structure of python on the next session.

Example
 >>2*2
 >>50*5*6
 >>(50-5*6)
 >>8/5

   *you type the following questions in your shell mode share the answers in comment window students.

String 

  String defines as to identify user what? was that in a particular script, for example, you write code for student monitoring system programming using python what you mention the program you give student name and student class and section much more info add in the script but one thing you know understood string doesn't execute during debug time not only python all programming Language common in This rules also main information of Sting.

  Python String notated in the double quotes(" ") or single quotes(' ') 

Examples of String in Python

>>'Hello TechTrainer.site' #Single Quotes
Hello TechTrainer.site
>>"Hello TechTrainer.site" #Double Quotes
Hello TechTrainer.site

List

You know previously any one of the programming languages like C,C++, JAVA most of the Languages have definitely Contain Array concepts but python optimizes and beat all of the programming languages Python has different concepts to handle an array.

The list is similar to array concepts list notated open and close Square Bracket below examples clear, your doubts what is List  


Example for List :

>>squares=[1,2,3,4,5,6,7]
>>squares
[1,2,3,4,5,6,7]

Python Script First Step towards programming 

       Another Special concept about python must you know python have no need Compiler Notaions like don't need to write a  Compiler termination Simples, for example, you write c and c++ programming you should write must compiler termination special characters like semi-colon(;) colon and much more than the only program execute correctly else definitely your program not working python no need this execute code directly without the semicolon and colon simples end of the coding.


Example of Python Script 


>>a,b = 0,1
>>while b<10
print(a,b)
A,b = b,a+b
>>
0...9



Python Keywords

                   Python is scripting Language Ok so you need must Know keywords about python following some important keywords given below.
First step Towards Programming  | First step Towards Programming for Python | beginner Level

These keywords Mostly Helping you due to programming, must Learn this keyword helping you Lot next we move on another topic.


Indentation 

              Indentation is nothing this is a block of code python generally allows you Whitespace as intent and python also allows you preferred tab.


Example:TechTrainer.py

For i in range(0,100)
    print(i)         #This Line Started after Four Whitespaces 
if i == 50:
    print(i)         #This Line Started after Four Whitespaces 


Comments

              Comments helping you another developer helping you understand your coding right way. python has two different commands there called single-line comments and multi-line comments 

               single-line comments using # and then multiline comments using "" you just listing the example of those given below

Example

a=10 #a variable assing as 10

"This is also www.techtrainer.site" 





Wednesday, June 24, 2020

Python Programming Tutorial | Python IDE Configuration | Python for Beginners |Session_2 |

Python Programming Tutorial | Python IDE Configuration   | Python for Beginners | Session_2



IDE(Integrated Development Environment)


IDE is important for all Programming languages.IDE helps you! testing and Debugging your code Then organized easily let you know python IDE.  


Python IDE open source Tool you download Python tool In official Website https://www.python.org/
Different IDE's Available in Market Like Pycharm, Wing, Anaconda Editor, etc,,. Download IDE above the Link Installation steps Very Simply.

Python Programming Tutorial | Session_2 | Python IDE Configuration   | Python for Beginners

Python IDE works two different modes as a Script Mode and Shell Mode. these two modes Have some differences Script Mode works to develop full lengthy scripting but shell mode can't do that shell mode works like a calculator.

we know IDE then you should know another configuration that is called Environmental Variable Settings. This is not Rocket Science do some simple steps lets begin following ScreenShot Note it down details.

Python Programming Tutorial | Session_2 | Python IDE Configuration   | Python for Beginners


you Enter different ways Enter Run Command Else navigate the following path  Control Panel\All Control Panel Items\System after that navigation click Enviroimnetal Variable Settings put Following Details give variable name: Path & give variable value as your Python IDE installation Directory C:\program Files(x86)\python after give details click Ok you have done! 

Ok, we discuring next how to do that scripting in python following sessions.Learn python your own style 



Tuesday, June 23, 2020

Python Programming Tutorial | Session_1 | Python Introduction | Python for Beginners

Python Programming Tutorial | Session_1 | Python Introduction.


https://www.techtrainer.site/

About Python Programming Tutorial:

                            Happy to learn This is a fully completed Course About python. let me know any doubts & queries in the Comment section I will help you! This Tutorial guide you Learn python as Build your Own GUI application.

Introduction About Python

  Okay! guys let's get start the session. first, think you know what is python programming and specification about other compare then other programming languages. This blog teaches and guides you. you become pro in python programming language 

   Python worlds power full language you don't trust! believe this is true. but one thing to let you know. even kids can be understood python programming language.

 Lets discussing python specification and futures one by one.

Did you know! Python is an object-oriented language python supports different types of oops' concepts. 

Python born in 1985-1990 The father of python GUIDO VAN ROSSUM. he was the developer of the python programming language.

Python very simple language compare then other programming languages like C, C++, java much more.

Python is High-level language more power full, Then surprisingly This is Open Source too!


Now we discuss some real-time technical futures of python programming this is important and the main features of python let's get started. Python has standard large Library Included, graphical user interface programming very simple compare to another programming(GUI) you put little bit amount of code you will create own code compare then java GUI programming language.

Another thing you Must know python interpreter language also Python platform indented language that means Python work as well Android, Linux, Windows Without any Interpret. Python Development and Debugging process very quick compare then other programming Language.


Next Session We Learn How to start and grow your Python Skills Click here





Monday, June 22, 2020

Python courses online free | Python course for beginners

Python courses online free | Python course for beginners 




https://www.techtrainer.site/

Python Courses Syllabus 


Python Session Part-1 

           Click TO Read Topics Below

Topics:

  1. Introduction    
  2. Python IDE Configuration 
  3. First step Towards Programming 
  4. Data Types and Models in Python 
  5. Python Operators  

                           


Python Session Part-2

Topics:

  1.  Input and Output statement.
  2.  Import statements.
  3.  Control Flow
  4.  Functions
  5.  Data Structure



Python Session Part-3


Topics:

  
  1.  Graphical User Interface(GUI)  using python 
  2.  DataBase Connectivity python Vs SQL
  3.  Networking using Python 
  4.  Standard Library 
  5.  Python projects