Monday, October 12, 2020

List:-

 Lists are mutable objects which means you can modify a list object after it has been created. Tuples, on the other hand, are immutable objects which means you can't modify a tuple object after it's been created.

a = ['dog', 'cat', 'elephant', 'cow']
>>> print(a)
['dog', 'cat', 'elephant', 'cow']
>>> a
['dog', 'cat', 'elephant', 'cow']

The important characteristics of Python lists are as follows:

  • Lists are ordered.
  • Lists can contain any arbitrary objects.
  • List elements can be accessed by index.
  • Lists can be nested to arbitrary depth.
  • Lists are mutable.
  • Lists are dynamic.

Lists that have the same elements in a different order are not the same:

>>>
>>> a = ['foo', 'bar', 'baz', 'qux']
>>> b = ['baz', 'qux', 'bar', 'foo']
>>> a == b
False
>>> a is b
False

>>> [1, 2, 3, 4] == [4, 1, 3, 2]
False

Lists Can Contain Arbitrary Objects

A list can contain any assortment of objects. The elements of a list can all be the same type:

>>>
>>> a = [2, 4, 6, 8]
>>> a
[2, 4, 6, 8]

Sunday, August 30, 2020

What is Python

Python is an open-source (free) programming language that is used in web programming, data science, artificial intelligence, and many scientific applications. Learning Python allows the programmer to focus on solving problems, rather than focusing on syntax.


In this tutorial you will learn to create, format, modify and delete strings in Python. Also, you will be introduced to various string operations and functions.


What is String in Python?

A string is a sequence of characters(Collection Of Character)

A character is simply a symbol. For example, the English language has 26 characters.

Computers do not deal with characters, they deal with numbers (binary). Even though you may see characters on your screen, internally it is stored and manipulated as a combination of 0's and 1's.


How to create a string in Python?

Strings can be created by enclosing characters inside a single quote or double-quotes. Even triple quotes can be used in Python but generally used to represent multi line strings and doc strings.

Python Program for String

#Creating a String With Single quotes

String1 = 'Welcome to the engineer World'

print("String with the use of Single Quotes: ") 

print(String1) 

#Creating A String With Double Quotes..

String1 = "I'm a abdul kadir khan"

print("\nString with the use of Double Quotes: ") 

print(String1) 

#Creating a String With Triple Quote

String1 = '''I'm a abdul kadir khan and I live in a world of "engineer"'''

print("\n String with the use of Triple Quotes: ") 

print(String1) 


# Creating String with triple Quotes allow multiple line 

String1 = ''' Software

                                        engineer

                                                        acadmy'''

print("\nCreating a multiline String: ") 

print(String1) 


Friday, August 21, 2020

which programming language best for beginner learning.

if you are beginner then you right place & if you have already learn some programming language.Even then  you are right place. because i will be teach you intermediate and advance level programming concept & program.

like as  PYTHON,C,C++,JAVA,PHP,HTML,CSS So on. 

Today i recommend you first of all you have learn Python if you are beginner. 

I will categorize python topics in three sections as we learn and progress..

Python Fundamentals and Programming

  • Introduction to Python
  • Strings, Lists and Tuples
  • Dictionaries and Sets
  • Conditional Execution & Loops
  • Comprehensions
  • Functions
  • Modules
  • Scopes and Namespaces

Intermediate Python

  • File Handling
  • Object Oriented Programming
  • Iterator, Generator, Decorators
  • Lambda Expressions

Advanced Python

  • Writing Library
  • Building Framework
  • Python C Extensions (C code in Python)
  • Closure, Function Factory, Method Chaining
  • Exception Handling, Context Manager
  • Meta classes, Introspection
  • Multi threading, Multiprocessing
  • Python In Java (Java Dynamic Language Support)
  • Python In C# (C# Dynamic Language Support)



                                                                                                                             THANK YOU










Featured post

List:-   Lists  are mutable objects which means you can modify a  list  object after it has been created.  Tuples , on the other hand, are i...