Social Icons

Tuesday, December 8, 2020

Python-courses-python-exercises-python-dictionary

Exercise 93

1 - Write a function named count_characters() which accepts a character string and which returns the occurrence of the characters contained in the string in the form of a dictionary.
2 - Write a function named count_words() which accepts a character string and which returns the occurrence of the words contained in the string as a dictionary.

Solution

Question 1
def count_characters(s):
    d = dict ({})
    listUnique = []
    for c in s:
        if c not in listUnique and c!= ' ':
            listUnique.append (c)
            d [c] = s.count (c)
            
    return d
# Example
s = "Python Programming"
print (count_characters(s))
# The output is:
# {'P': 2, 'y': 1, 't': 1, 'h': 1, 'o': 2, 'n': 2, 'r': 2, 'g': 2, 'a': 1, 'm': 2, 'i': 1}
Question 2
def count_words (s):
    d = dict ({})
    listUnique = []
    listWords = s.split()
    for word in listWords:
        if word not in listUnique:
            listUnique.append(word)
            d[word] = listWords.count(word)
            
    return d
# Example
s = "Python is programming language and is the most used language"
print (count_words(s))
# The output is:
{'Python': 1, 'is': 2, 'programming': 1, 'language': 2, 'and': 1, 'the': 1, 'most': 1, 'used': 1}


Younes Derfoufi
my-courses.net

Friday, December 4, 2020

python-courses-python-exercises-python-tutorials-python-formation

Mastering Python Reference is an accelerated path with the intention to save you time and after gaining knowledge of the lessons you can begin writing workable applications (games, records visualizations, web programs, and lots more).

What is Python
Python is a popular fashionable-motive programming language that can be used for a wide kind of applications. It includes excessive-stage records structures, dynamic typing, dynamic binding, and plenty of more capabilities that make it as useful for complicated software improvement as it is for scripting or "glue code" that connects components collectively. it could additionally be extended to make device calls to almost all operating structures and to run code written in C or C++. because of its ubiquity and capacity to run on nearly every machine structure, Python is a typical language determined in a spread of various applications.

Friday, November 27, 2020

Python-courses-python-exercises

Exercise 92

Write a python program as a function which takes a string s as parameter and returns True if the string s contains at least one uppercase character and False otherwise.

Solution

def containsUpper(s):
    
     # define and initialize a variable which counts the number of capitals
     counter = 0
    
     # browse the characters in the string s
     for x in s:
          # increment the counter each time the character encountered is in uppercase
          if x.isupper ():
               counter = counter + 1
     if counter> 0:
          return True
     else:
          return False
# Example
print (containsUpper ("djangoFramework")) # prints True
print (containsUpper ("djangoframework")) # prints false


Younes Derfoufi
my-courses.net

Thursday, November 19, 2020

Python-courses-python-exercises-python-for-while

Exercise 89

Write a Python algorithm which determines the list of repeated charcters in given string. Example: if s = "Programming language", the algorithm returns the list:
['r', 'g', 'a', 'm', 'n']

Solution

# create a function to test if given character is repeated within a given string
def isRepeated(s,c):
    counter = 0
    for x in s:
        if x == c:
            counter = counter + 1
    if counter >= 2:
        return True
    else:
        return False
# create a function that returns the list of all repeated characters
def repeated(s):
    # initializing the list of all repeated characters
    listRepeated = []
    for x in s:
        if isRepeated(s , x) and x and x != " " and x not in listRepeated:
            listRepeated.append(x)
    return listRepeated

# Example
s = "programming language"
print("List of repeated characters in s: " , repeated(s)) 
# The output is : List of repeated characters in s:  ['r', 'g', 'a', 'm', 'n']


Younes Derfoufi
my-courses.net

Saturday, November 14, 2020

python-courses-python-exercises-python-tutorials-python-formation

What's Pthon ?
Python is a wellknown-reason programming language this is becoming ever extra popular for records science. businesses international are the use of Python to harvest insights from their records and advantage a competitive side. unlike different Python tutorials, this path specializes in Python in particular for data technological know-how. In our creation to Python route, you’ll study effective approaches to store and control facts, and useful records technology tools to start conducting your very own analyses. start DataCamp’s on line Python curriculum now.
Python, named after the British comedy institution Monty Python, is an interpreted, interactive, item-orientated programming language. Its flexibility lets in it to do many stuff, each massive and small. Python can be used to put in writing simple packages, however it also possesses the whole strength required to create complicated, massive-scale agency solutions. A number of the ways in which Python is used includes:
Python-courses-python-exercises-python-sets-python-inheritance

Exercise 93

Write a Python program which wrap a given string into a paragraph of given width Solution
import textwrap
def wrapText(s , w):
    return textwrap.fill(s,w)

# Example
s = "Python is open source programming language"
print(wrapText(s , 20))
"""
The out put is:
Python is open
source programming
language
"""


Younes Derfoufi
my-courses.net

Friday, November 13, 2020

features-Python-courses-python-exercises-python-oop

Exercise 91 ***

Write a python algorithm which determines the common words with maximum length of two strings text T1 and T2. Example if: T1 = "Python created by Guidorossum is open source programming language. Python was created on 1991" and T2 = "Python created by Guidorossum is the most popular programming language Guidorossum", the algorithm returns the list:
['Guidorossum', 'programming']

Solution

#creating a method which determines the list of common words in T1 and T2
def commonWords(T1 , T2):
    # converting the texts into lists
    listWords_in_T1 = T1.split()
    listWords_in_T2 = T2.split()

    # initializing the common words
    listCommon_words = []
    for word in listWords_in_T1 :
        if word in listWords_in_T2 and word not in listCommon_words:
            listCommon_words.append(word)
    return listCommon_words

# Creating a methode that determines the common word with maximum length
def commonMax(T1, T2):
    listCommon_words = commonWords(T1 , T2)
    # initializing the maximum length
    maxLength = 0
    for word in listCommon_words:
        if len(word) >= maxLength:
            maxLength = len(word)
            
    # searching the the common words of maximum length
    listCommonWordMax = []
    for word in listCommon_words:
        if len(word) == maxLength:
            listCommonWordMax.append(word)
    return listCommonWordMax

T1 = "Python created by Guidorossum is open source programming language. Python was created on 1991"
T2 = "Python created by Guidorossum is the most popular programming language Guidorossum"
print(commonMax(T1 , T2))
# The output is: ['Guidorossum', 'programming']


Younes Derfoufi
my-courses.net

Thursday, November 12, 2020

python-courses-python-exercises-python-tutorials-python-formation

Python is a fashionable-purpose built-interpreted, built-interactive, object-oriented, and high-degree programmbuilt-ing language. It turned builtintegrated created by way of Guido van Rossum built-inintegrated 1985- 1990. Like Perl, Python source code is likewise available under the GNU trendy Public License (GPL).
Python is an integratedterpreted, item-orientated, excessive-level programmintegratedg language with dynamic semantics developed by way of Guido van Rossum. It built-intointegrated at the start released integrated 1991. Designed to be easy as well asintegrated built-ing, the call “Python” is a nod to the British comedy built-institution Monty Python. Python has a popularity as a novice-friendly language, built-in Java as the most extensively used built-introductory language because it handles a whole lot of the complexity for the person, built-inintegrated built-inners to cognizance on completely built-ingraspbuiltintegrated programmbuilt-ing prbuiltintegrated built-in preference to mbuilt-inute builtintegrated.
Python is used for server-side netintegrated development, software program improvement, mathematics, and machbuiltintegrated scriptbuilt-ing, and is famous for fast utility development and as a scriptbuilt-ing or glue language to tie built-ing additives because of its high-level, data systems, dynamic typintegratedg, and dynamic bintegrateddintegratedg. program built-in fees are reduced with Python due to the without problems discovered syntax and emphasis on clarity. moreover, Python’s support of modules and applications enables modular applications and reuse of code.
Python is an open supply network language, so numerous built-inbuiltintegrated programmers are constantly built-inbuildbuiltintegrated libraries and capability for it.
Python-courses-neighborhood-Python-courses-bin-Python-courses-python-string

Exercise 87

Write a Python algorithm as a function which takes as parameter a tuple of two strings (s1, s2) and which returns the list of characters in s1 and not in s2. Example: if s1 = 'Python language' and s2 = 'Java Programming', the function returns the list:
['y', 't', 'h']

Solution

def differenceS1S2(s1 , s2):
    listDifference = []
    for x in s1:
        if x not in s2 and x not in listDifference:
            listDifference.append(x)
    return listDifference

s1 = "Python Programming" 
s2 = "Java Programming"
print(differenceS1S2(s1 , s2)) # the output is: ['y', 't', 'h']


Younes Derfoufi
my-courses.net

Wednesday, November 11, 2020

python-courses-python-exercises-python-tutorials-python-formation

What is Python?
Python is an object-orientated programming language created by way of Guido Rossum in 1989. it is preferably designed for fast prototyping of complex applications. It has interfaces to many OS system calls and libraries and is extensible to C or C++. Many huge businesses use the Python programming language consist of NASA, Google, YouTube, BitTorrent, and so forth.
The language has a simple syntax that allows low prices related to application renovation. It does not have one unique motive however can be used for more than one functions.
Python is a famous shape of programming to be used for scripting or glue language needed to connect existing programming elements. it may additionally be used for software development. It’s much like different programming codecs consisting of JavaScript. however the principal Java vs. Python difference is that it's miles much more likely to be used for “server-facet” scripting than JavaScript.
gaining knowledge of the Python-language or JavaScript comes right down to what sort of programming paintings you’re trying to do.
Python-courses-python-exercises-games-Python-courses-

Exercie 87

Write a Python algorithm as a function which takes as parameter a tuple of two strings (s1, s2) and which returns the list of common characters to s1 and s2.
Example: if s1 = 'Python language' and s2 = 'Java Programming', the function returns:
['P', 'o', 'n', ' ', 'a', 'g']

Solution

def commonCharacters(s1 , s2):
    listCommon = []
    for x in s1:
        if x in s2 and x not in listCommon:
            listCommon.append(x)
    return listCommon

s1 = "Python language" 
s2 = "Java Programming"
print(commonCharacters(s1 , s2)) # the output is: ['P', 'o', 'n', ' ', 'a', 'g']


Younes Derfoufi
my-courses.net
python-courses-python-exercises-python-tutorials-python-formation

Study the basics of the Python programmbuilt-ing language from your smartphone, anytime at your personal tempo and at the go with PyTutor.
construct your python competencies at the go along with this superb free app to built-ine Python Programmintegratedg. end up a Python programmbuilt-ing expert built-in built-inintegrated the python codbuilt-ing language. exambuiltintegrated Python is a ought to have app for all codbuilt-ing newbies or laptop technological know-how students to analyzeintegrated python programmbuilt-ing language every time they want and anywhere they want. whether you’re built-inintegrated for a python integratedterview or any exambuiltintegrated that requires python programmintegratedg knowledge, you can discover built-incredible content on thisintegrated programmintegratedg built-inintegrated app.

This superb Python Programmbuilt-ing gabuiltintegrated app has built-ing content built-ing of Python Programmintegratedg Tutorials, Python Programmbuilt-ing trabuiltintegrated, packages, Questions & solutions and all that you want to both built-in Python programmbuilt-ing basics or to turn out to be a Python programmintegratedg expert.

With an notable series of Python packages (code examples) with feedback, more than one questions and solutions, all your programmbuilt-ing integrated wishes are bundled built-in a integrated code built-ing to knowintegrated app.

Tuesday, November 10, 2020

Python-courses-download-Python-courses-s-Python-courses

Eercise 86 *

Write an algorithm in Python which determines the set of words that make up a text string s. Example if s = "Python is more power than Java", the algorithm returns the set:
{Python, is, more, power, than, Java}

Solution

# creation of a function which returns all the words that make up a text string s.
def wordSet (s):
     
     # initialize the set of words
     Set = set ({})
    
     # convert the string to a list
     ListWords = s.split ()
     # browse the words in the ListWords list
     for word in ListWords:
          Set.add (word)
     return Set
# Example
s = "Python is more power than Java"
print (wordSet (s))
# output: {'is', 'power', 'Java', 'more', 'Python', 'than'}


Younes Derfoufi
my-courses.net
features-Python-courses-python-exercises-python-oop

Exercise 85

Write a python algorithm which determines the set of all characters that make up a string s. Example if s = "Python programming", the algorithm returns the set:
{'p', 'i', '', 'r', 'o', 'm', 't', 'a', 'h', 'y', 'P', 'g' , 'n'}

Solution

# create a function which returns all the characters that make up a string s
def characterSet (s):
    # initialization of the set of characters
    Set = set ({})

    # iterate over all characters of the string s
    for x in s:
        Set.add (x)
    return Set

# Example
s = "Python programming"
print (characterSet (s))
# output: {'p', 'i', '', 'r', 'o', 'm', 't', 'a', 'h', 'y', 'P', 'g' , 'n'}


Younes Derfoufi
my-courses.net

Monday, November 9, 2020

python-courses-python-exercises-python-tutorials-python-formation

Python Programming

if you are trying to find an application to examine Python simple to develop without any programming expertise. you're at right location. study Python Programming in a greatly improved studying surroundings with more instructions, real exercise possibility, and community guide.
when potential programmers and coders begin getting to know languages, one of the maximum common questions is, what is the Python programming language? It’s a valid query, thinking about that many languages, such as Python, work collectively with different languages which will construct complicated web packages and sites. This brief advent to Python will assist any ability programmer recognize the language and why it’s useful.
Python is an open-source programming language that is high stage and works as a preferred cause language; it's far most customarily as compared to Ruby, JavaScript, and Scheme. What units Python apart from other programming languages is that it is easy to use, can be taught to a newbie, can be embedded into any utility, and can run on all modern-day working structures, inclusive of Mac, home windows, and Linux. it is also one of the maximum powerful languages a programmer can use and is about three and 5 times quicker to code than JavaScript and C++, respectively.

The Python program is a scripting language that may be used for prototype improvement, coding web sites and packages, processing snap shots, medical records, and extra. the program may be determined in motion on the Google seek engine, NASA, Disney, Pinterest, and extra. It changed into built for ease of use and pace and is much less complicated than Ruby and other similar object-orientated programming languages. due to the fact it's far open-sourced, this system has loved a reputation among developers and programmers, and it remains the bottom program for most websites in operation on the net today.
it-Python-courses-python-string--Python-courses-python-exercises

Exercise 84 *

Write a Python program as function that takes as parameter a string s and which returns the list of all repeated character in the string s. Example: if s = "python language", the fuction returns the list :
['n', 'a', 'g']

Solution

# create a function to test if given character is repeated within a given string
def isRepeated(s,c):
    counter = 0
    for x in s:
        if x == c:
            counter = counter + 1
    if counter >= 2:
        return True
    else:
        return False
# function which determines the list of all repeated characters
def listRepeated(s):
    repeated = []
    for x in s:
        if isRepeated(s,x) and x not in repeated:
            repeated.append(x)
        
    return repeated
          
# Example
s = "python language"
print("The list of repeated character is : " , listRepeated(s))
# The output is: 
# The list of repeated character is :  ['n', 'a', 'g']


Younes Derfoufi
my-courses.net
it-Python-courses-python-string--Python-courses-python-exercises

Exercise 83 *

Write a Python program as function that takes as parameter a string s and which returns the first repeated character in the string s. Example: if s = "django framework", the fuction returns the character 'a'

Solution

# create a function to test if given character is repeated within a given string
def isRepeated(s,c):
    counter = 0
    for x in s:
        if x == c:
            counter = counter + 1
    if counter >= 2:
        return True
    else:
        return False
# function which determines the first repeated character
def firstRepeated(s):
    repeated = ''
    for x in s:
        if isRepeated(s,x):
            repeated = x
            break
    return repeated
          
# Example
s = "django framework"
print("The first repeated character is : " , firstRepeated(s))
# The output is: 'The first repeated character is :  a'


Younes Derfoufi
my-courses.net

Sunday, November 8, 2020

python-courses-python-exercises-python-tutorials-python-formation

journey in the programming world.
How is Python used in the actual global?
Python’s design is based totally on the ideas of elegance, simplicity, and readability, which makes it a exquisite language for newbie developers. as it's clean to research, it's far now often the first desire in college-level programming instructions.
Python is one of the maximum popular languages for coding in the world.
most of the people of top U.S. faculties even use Python of their introductory coding classes: coaching college students to use Python to build simple games, parse records from web pages, or even conduct language processing!
still, many dad and mom and students alike frequently surprise — how is Python virtually utilized in agencies or diverse fields?
read directly to find out how Python powers nowadays’s leading industries, and performs a first-rate position in numerous computer technology disciplines. Why Python?
Python is a excessive-stage and general-reason coding language — meaning that it’s easier to recognize and may be used to remedy a variety of issues!

With its easy syntax, high clarity, usability throughout operating structures, Python is a precious language to each study and use for a selection of programs.
Python-courses-python-exercises-python--Python-courses-configure script-run-script

Exercise 82

Write a Python algorithm that remove all empty strings from list of strings Example:
If :
L = ["Python" , "" , "is" , "" , "the",  "most" , "", "used" , "programming", "language" , ""]
The output is:
['Python', 'is', 'the', 'most', 'used', 'programming', 'language']

Solution

def remove_empty_str(L):
    # initializing the list with no string
    newList = []
    
    # iterate over all element of the list L
    for word in L:
        if word != "":
            newList.append(word)
    return newList

# Example
L = ["Python" , "" , "is" , "" , "the",  "most" , "", "used" , "programming", "language" , ""]
print(remove_empty_str(L))
# Expected output is :
# ['Python', 'is', 'the', 'most', 'used', 'programming', 'language']


Younes Derfoufi
my-courses.net

Saturday, November 7, 2020

python-courses-python-exercises-python-tutorials-python-formation

Python is a dynamic, integrated and (bytecode-compiled) language. There aren't any built-in declarations of variables, parameters, capabilities, or strategies built-in source code. This makes the code quick and bendy, and you lose the compile-time type checkintegratedg of the supply code. Python tracks the styles of all values at runtime and flags code that doesn't make feel because it runs.
Python is an important programmbuilt-ing language to recognize — it is widely-utilized in fields like builtintegrated science, web improvement, software engbuilt-ineerintegratedg, sport improvement, automation. but what's the satisfactoryintegrated manner to analyzeintegrated Python? That may be hard and pabuilt-inful to discern out. I know that from built-in. one of the integrated that i found most built-inintegrated whilst i used to be masterbuiltintegrated Python was how regularly occurrbuiltintegrated all of the built-in assets have been. I desired to learn how to make web sites the usage ofintegrated Python, however it seemed like each gabuiltintegrated aid wanted me to spend lengthy, uninteresting, months on Python syntax earlier than I should even integrated dointegratedg what built-interested me.
An fantastic manner to see how Python code works is to run the Python built-interpreter built-in code right integratedto it. if you ever have a query like, "What takes place if I upload an integratedt to a listbuiltintegrated?" simply typbuilt-ing it integratedto the Python integratedterpreter is a quick and possiblyintegrated the nice way to look what takes place. (See under to peer what built-inely happens!)
exambuiltintegrated Python - AI with Python, Django, Flask, CherryPY, AI, ML with Compiler. you could study,

Friday, November 6, 2020

python-courses-python-exercises-python-tutorials-python-formation

About Python turtle

An animation that shows how the turtle is used to create images by way of combining forward and flip commands at the same time as a pen is touching the paper
A spiral drawn with an iterative turtle images set of rules
A turtle graphic pattern drawn with a Python program
The turtle has three attributes: a area, an orientation (or direction), and a pen. The pen, too, has attributes: shade, width, and on/off state.

The turtle actions with commands which can be relative to its personal function, along with "pass forward 10 areas" and "flip left ninety degrees". The pen carried by the turtle can also be managed, by means of enabling it, putting its coloration, or placing its width. A pupil could recognize (and expect and motive about) the turtle's movement through imagining what they would do in the event that they were the turtle. Seymour Papert referred to as this "frame syntonic" reasoning. A complete turtle images machine requires manipulate go with the flow, procedures, and recursion: many turtle drawing applications fall quick. From these building blocks you could build greater complicated shapes like squares, triangles, circles and other composite figures. The concept of turtle pics, for example is useful in a Lindenmayer machine for generating fractals.
Python-courses-python-exercises

Exercise 81

Write a Python algorithm as function which takes as parameter a string s and that return the dictionary whose keys are the words that making up the string s and whose values are the number of occurrences of words within the string Text s. Example: if s = "I use Python for datascience but I don't use Python for mobile", the algorithm returns the dictionary:
d = {'I': 2, 'use': 2, 'Python': 2, 'for': 2, 'datascience': 1, 'but': 1, "don't": 1, 'mobile': 1}

Solution

def wordOccurrence(s):
    
    # initializing the dictionary that we want to obtain
    d = dict({})
    
    # convrting the the string s into a list
    listWords = s.split()
    
    # iterate over all word in listWords 
    # and adding the number of occurrences of all word to the dictionary d
    for word in listWords:
        d[word] = listWords.count(word)
    
    return d

# Example
s = "I use Python for datascience but I don't use Python for mobile"
print(wordOccurrence(s))
# the output is : 
#{'I': 2, 'use': 2, 'Python': 2, 'for': 2, 'datascience': 1, 'but': 1, "don't": 1, 'mobile': 1}


Younes Derfoufi
my-courses.net

Thursday, November 5, 2020

python-courses-python-exercises-python-tutorials-python-formation

Python is a preferred-reason programming language that can be used on any modern-day pc running device. it can be used for processing text, numbers, pics, medical facts and just about anything else you would possibly store on a pc. it's far used each day within the operations of the Google seek engine, the video-sharing website YouTube, NASA and the new york stock exchange. those are but most of the places wherein Python performs crucial roles within the fulfillment of the enterprise, authorities, and non-earnings businesses; there are numerous others. Python is an interpreted language. this means that it isn't always converted to computer-readable code earlier than the program is administered but at runtime.

Tuesday, November 3, 2020

python-courses-python-exercises-python-tutorials-python-formation

Python is one of the maximum famous programming language advanced with the aid of Guido Van Rossum. Python is popular amongst developers because of its clear syntax and smooth code even for beginners. For those who just have marked their career in improvement, gaining knowledge of python may be very useful. they could leverage the Python Programming education, blogs, movies, modules, and hundreds of different resources to explore each nook of this trending language. as soon as completed, you may capable of carry out contemporary improvement operations consisting of GUI development, net designing, gadget admin paintings, complex economic transactions or calculations, records technological know-how, visualization, and this listing by no means ends in terms of the actual-international software of python programming.
The programming language you will be learning is Python. Python is an example of a excessive-level language; other excessive-degree languages you might have heard of are C++, php, Pascal, C#, and Java. As you might infer from the call high-level language, there are also low-stage languages, every so often referred to as device languages or assembly languages. Loosely talking, computers can simplest execute programs written in low-degree languages. as a result, applications written in a excessive-degree language must be translated into something extra suitable before they are able to run.

nearly all applications are written in high-level languages due to their blessings. it is an awful lot less difficult to program in a high-degree language so packages take less time to jot down, they're shorter and less complicated to read, and they are more likely to be correct. 2d, excessive-level languages are portable, which means that they could run on one of a kind sorts of computers with few or no modifications.

The engine that interprets and runs Python is referred to as the Python Interpreter: There are methods to use it: instantaneous mode and script mode.
research Python three Programming + learn Django Framework + examine Flask Framework + research system getting to know + research artificial Intelligence + examine Deep mastering + analyze Blockchain + research CherryPy + study MySQL + study Postgresql + study Python layout styles + learn Pytorch + Tensorflow guide and much extra,without advertisements. that is an in-depth manual to the maximum famous and maximum in-call for programming language Python.
subjects
learn Python 3

Python three introduction
what is New in Python 3
Python three overview
Python three environment Setup
learn Python 3 simple Syntax
analyze Python Variable kinds
learn Python basic Operators
examine Python decision Making
Python three Loops
Python 3 Numbers
research Python Strings
Python Lists
Python 3 Tuples
Python Dictionary
Python Date & Time
examine Python functions
Python three Modules
Python documents I/O
Python three Exceptions
Python three advanced Tutorials
study Python three classes/objects
research Python 3 Reg Expressions
research Python 3 CGI Programming
study Python three Database get admission to
Python 3 Networking
Python 3 Sending e mail
analyze Python three Multithreading
study Python 3 XML Processing
Python three GUI Programming
similarly Python 3 Extensions and Libraries

study Python Django

Django development review
Django surroundings Setup
developing our first mission
Apps existence Cycle
learn Django Admin Interface
growing views
analyze Django URL Mapping
analyze Django Template device
Django models
study Django web page Redirection
Django Sending E-mails
analyze Django established views
study Django shape Processing
research Django report uploading
Apache Setup
Cookies coping with
Django sessions
learn Django Caching
analyze Django feedback
Django RSS
research Django AJAX

-study Python Flask
Flask Programming overview
Flask surroundings
Flask software
learn Flask Routing
Variable rules
study Flask URL constructing
research Flask HTTP techniques
learn Flask Templates
research Flask Static files
Request item
study Flask Cookies
Flask classes
study Flask Redirect & mistakes
Message Flashing
learn Flask record uploading
study Flask Extensions
Flask Mail
Flask WTF
learn Flask SQLite
learn Flask SQLAlchemy
research Python device learning
system mastering (ML) is largely that area of pc technology with the help of which computer systems can provide sense to information in a good deal the equal way as people do. In easy words, ML is a type of synthetic intelligence that extract styles out of raw information via the usage of an algorithm or technique.

artificial Intelligence
synthetic intelligence is the intelligence confirmed by machines, in contrast to the intelligence displayed with the aid of people. This Python synthetic Intelligence educational covers the basic principles of various fields of synthetic intelligence like synthetic Neural Networks, herbal Language Processing, device gaining knowledge of, Deep mastering, Genetic algorithms and more.

analyze Python Deep gaining knowledge of
Python is a popular-purpose high-degree programming language this is widely utilized in facts science and for producing deep studying algorithms. This Python Deep studying tutorial introduces Python and its libraries like Numpy, Scipy, Pandas, Matplotlib; frameworks like Theano, TensorFlow, Keras.




my-courses.net

Monday, November 2, 2020

Python-courses-python-exercises-python-dictionary

Exercice 80

Write a python algorithm which determines the list of all common words to two text T1 and T2 without repetition. Example if:
T1 = "Python is open source programming language. Python was created on 1991"
and
T2 = "Python is the most popular programming language "
, the algorithm returns the liste
['Python', 'is', 'programming', 'language.']
( the word 'Python' must be added only once even if it shared twice)

Solution

def commonWords(T1 , T2):
    # converting the texts into lists
    listWords_in_T1 = T1.split()
    listWords_in_T2 = T2.split()
    print(listWords_in_T2)
    
    # initializing the common words
    listCommon_words = []
    for word in listWords_in_T1 :
        if word in listWords_in_T2 and word not in listCommon_words:
            listCommon_words.append(word)
    return listCommon_words

# Example
T1 = "Python is open source programming language. Python was created on 1991" 
T2 = "Python is the most popular programming language. "
print("The list of common words is : " , commonWords(T1 , T2))
# The output is :
# The list of common words is :  ['Python', 'is', 'programming', 'language.']


Younes Derfoufi
my-courses.net
python-courses-python-exercises-python-tutorials-python-formation

What is Python?
Python is a widespread-purpose interpreted, interactive, object-orientated, and high-level programming language.
Python academic app designed for software program programmers who need to research Python programming language from scratch and additionally best python educational for novices.
You ought to have a primary expertise of computer Programming terminologies. A simple expertise of any of the programming languages is a plus.
you can without difficulty examine python by the use of this app.
Python is a popular-cause programming language. if you see any survey on popular programming languages over the previous few years, Python continually comes on pinnacle of the demand chart each yr.
individuals who hate programming are tempted to exchange their minds via the simplicity of Python. most of the task listings have Python someplace as a part of the process description. allow us to see what makes Python so special on this decade and future. candidates and organizations upskill or reskill in Python irrespective of their qualifications, roles, and experience. pointless to mention, Python is very easy to examine. analyze Python like a pro download the app now and decorate your python capabilities to subsequent level.
these days Python is treated as first-class Language for records technology and device mastering
We essentially divided app into 4 important modules every has its kind of choices.
Python is a effective trendy-cause programming language. it's miles used in web improvement, statistics science, growing software program prototypes, and so forth. thankfully for beginners, Python has simple clean-to-use syntax. This makes Python an first-rate language to learn to software for beginners.
API improvement

There are a few excellent frameworks for API improvement with Python, among the ones, there are 2 favorites the various improvement community, Django and Flask (on Flask I wrote an editorial on why i love it so much and a base mission to installation your APIs)

The communication round API improvement went immediately into the path of internet frameworks, why? nicely… I don’t believe that you have to write your personal web server or framework while you want to cognizance on writing the code for your API.
a few people also argue the use of Python for internet improvement in wellknown, even though I normally don’t like to apply the ones frameworks for the the front-end part, and i favor to build front-ends the usage of React, or every other like VueJS or Ember for that subjects.

Sunday, November 1, 2020

Python-courses-python-exercises-python-dictionary

Exercise 78 **

Write a python algorithm which returns the list of all index where an occurrence occ is found within a given string s without using any predefined method as find(), rfind() , index()... The function returns the empty list [], if occ does not exist in s.
Example:
s = "Python is an interpreted language. Python is open source. Python is easy to learn"
occ = "Python" , the algorithm returns the list: [0, 35, 58]

Solution

def indexOfOccurrence(s , occ):
    # getting the length of the occurrence occ and the len of the string s 
    m = len(occ)
    n = len(s)

    # initializing the list of index
    listIndex = []
    # searching all indx of occurrence occ within the string s
    for i in range(0 , n-m):
        if s[i : m + i] == occ:
            listIndex.append(i)
    return listIndex

# Example:
s = "Python is an interpreted language. Python is open source. Python is easy to learn"
occ = "Python"
print(indexOfOccurrence(s, occ)) 
# The output is: [0, 35, 58]


Younes Derfoufi
my-courses.net

Saturday, October 31, 2020

python-courses-python-exercises-python-tutorials-python-formation

What is Python?
study Python, the popular and pervasive programming language constructed for almost each purpose.

Python is a famous fashionable-cause programming language that may be used for a wide form of applications. It consists of excessive-level statistics systems, dynamic typing, dynamic binding, and plenty of more features that make it as useful for complicated software improvement as it's far for scripting or "glue code" that connects components collectively. it can additionally be extended to make system calls to nearly all running structures and to run code written in C or C++. due to its ubiquity and potential to run on nearly every machine architecture, Python is a ordinary language discovered in a spread of different packages.
Python is an interpreted, interactive, item-oriented programming language. It carries modules, exceptions, dynamic typing, very high degree dynamic facts kinds, and training. —Python software program foundation FAQ
The programming language consists of thousands of 0.33-birthday celebration modules to be had in the Python package deal Index (PyPI). PyPI gives popular requirements for extraordinary know-how, like Django for internet improvement and NumPy, Pandas, and Mathplotlib for data technology. about Python
First evolved inside the overdue Nineteen Eighties by way of Guido van Rossum, Python has advanced as an open supply programming language by way of handling public dialogue thru Python Enhancement Proposals (PEPs). In 2018, van Rossum stepped down because the language's Benevolent Dictator For lifestyles (BDFL), and, as officially outlined in PEP 13, a guidance council was installed area to function the leadership of the language.
The Python software program foundation (PSF) is a 501non-income organisation that holds the highbrow assets rights in the back of the Python programming language. This includes Python model 2.1 and later, PyPI, the CPython reference implementation, and infrastructure to maintain the language. The PSF also offers presents for software craftship and runs multiple PyCon conferences a 12 months.
Python is currently on its 0.33 principal model and is regularly up to date.
Is Python open supply?
sure, all present day variations of Python are copyrighted under a GPL-like minded license licensed by means of the Open source Initiative. The Python emblem is trademarked but lets in for personalisation (see the entire license for info).
you can down load the Python source code here.

Why use Python?
There are several reasons why Python is a good desire as a programming language, relying on your attitude and heritage.
Python for programmers
the ones new to programming can gain from Python's excessive level of abstraction. it is especially interactive and regarded for its "strong opinions" round precise syntax (together with whitespace). Python, like different high-degree languages, has a rubbish series technique to manage reminiscence or delete unused resources. A user can acquire instant feedback from the interpreter by using typing python at the command line or through the usage of projects like JupyterLab if they need a browser-based totally improvement experience. Many customers also respect that Python has a strict syntax enforced through the compiler, making it clean to have a unmarried "proper manner" to write a program.
Unix -Python-courses-Solaris, Linux, FreeBSDPython-courses-python-exercises-python

Exercise 77

Write a Python algorithm which determines the first index of an existing occurrence within a given string s without using any predefined method as find() or rfind()... The algorithm must return -1 if the occorrence does not exist within the string s. Example if s = "Python programming language", and occ = "prog" the algorithm return 7

Solution

def findFirstOccurrence(s , occ):
    # getting the length of the occurrence occ and the len of the string s 
    m = len(occ)
    n = len(s)

    # initialize index 
    index = -1
    # searching the occurrence occ within the string s
    for i in range(0 , n-m):
        if s[i : m + i] == occ:
            index = i
            break
    return index

# Example:
s = "Python programming language"
occ1 = "prog"
occ2 = "algorithm"
print(findFirstOccurrence(s, occ1)) # display: 7
print(findFirstOccurrence(s, occ2)) # display: -1


Younes Derfoufi
my-courses.net

Friday, October 30, 2020

features-Python-courses-python-exercises-python-oop

Exercise 76

Write a python algorithm that transform a given string s by swapping the second character (s[1]) with the befor last character. We assume that len(s) is greater or equal than 4. Example if s = "Python" , the algorithm returns the string: "Pothyn".

Solution

def swapping(s):
    
    n = len(s)
    
    s_swap = s[0] + s[n-2] + s[2:n-2] + s[1] + s[n-1]
    
    return s_swap

# Example
s = "Python"
print(swapping(s)) # the output is : Pothyn


Younes Derfoufi
my-courses.net
python-courses-python-exercises-python-tutorials-python-formation

Python is an interpreted, item-orientated, excessive-level programming language with dynamic semantics. The Python Developer's handbook offers novices with a simple introduction to the basics, and experts will find advanced details they want.
Python is an smooth to study, powerful programming language. It has green high-level facts systems and a simple but powerful technique to item-oriented programming. Python’s fashionable syntax and dynamic typing, together with its interpreted nature, make it an excellent language for scripting and fast application development in many regions on most structures. This app assets the official Python 3.7.2 documentation educational phase and presents and easy to read, loose, offline way to examine the equal.
Python is a popular-purpose programming language that is turning into ever extra popular for the information technology.This course specializes in python mainly for fundamental to strengthen.
In our advent to python course,you will study the effective approaches to shop and control information, and helpful data technology gear to start engaging in yours very own
analyses.

whether or not you're an skilled programmer or no longer, this route is supposed for all of us who needs to examine the Python programming language.analyze python programming tutorials one of the nice supply to learn.super assignment for the scholars.lot of running about coding and concept of applications.tough operating each day at the cease you are making yourself sturdy.

solution lot of set of rules for gaining knowledge of.As for the primary language .It design for the pupil who need to make itself developer for gaming and other software .It very use full for it.
Lot of algorithm and lot of applications and also strategies to information to expand your self as a developer.
on this you will see the following things underneath.

* Python three.6
. educational
. Library Reference
. Language Reference
. Python Setup and utilization
. Python HOWTOs
. installing Python Modules
. distributing Python Modules
. Extending and Embedding
. Python/C API




my-courses.net

Thursday, October 29, 2020

Python-courses-python-exercises-python-students-online-courses

Exercise 75

Write a python algorithm which determines the list of all common characters to two strings s1 and s2 without repetition. Example if s1 = "Python language" and s2 = "Programming", the algorithm returns the liste ['P', 'o', 'n', 'a', 'g'] ( the charcter 'g' must be added only once even if shared twice)

Solution

def commonCharacters(s1 , s2):
    # initializing the list of common characters
    listCommon = []
    for x in s1:
        if x in s2 and x not in listCommon:
            listCommon.append(x)
    return listCommon

# Example
s1 = "Python language"
s2 = "Programming"
print("List of common characters : ", commonCharacters(s1 , s2))
# The output is : List of common characters :  ['P', 'o', 'n', 'a', 'g']


Younes Derfoufi
my-courses.net
Python-courses-python-exercises-python-list

Exercise 74

Write a Python program that replace the characters with odd index of a given string by '#'. Exemple if s = "Python" , the algorithm returns the string: "P#t#o#"

Solution

def replace(s):
    n = len(s)
    # initializing desired string
    new_string = ""
    
    # iterate over all characters of string s
    for i in range(0 , n):
        # adding the character of even index to the new string
        if( i%2 == 0 ):
            new_string = new_string + s[i]
        else:
            new_string = new_string + '#'
    return new_string

# Example
s = "Python"
print(replace(s)) # display : P#t#o#


Younes Derfoufi
my-courses.net
python-courses-python-exercises-python-tutorials-python-formation

research Python with this app without commercials.
built-ine Python with 60+ Python lessons and on-line compiler.
This Python educational will teach you the basic and superior built-in of Python.
In every lesson, there are factors, examples with the try It your self functionality that help you successfully discover ways to code Python. - what's Python?
it's miles a programmbuilt-ing language developed built-ingintegrated Guido van Rossum, that's integratedterpreted, offers high-degree capabilities and additionally built-incorporatesintegrated characteristics of a preferred-reason programmintegratedg language. Its shape is primarily based on garbage-collection and dynamic typintegratedg, built-ing multiple programmbuilt-ing-paradigms built-include object-oriented, practical, and procedural programmbuilt-ing, with a majority of these technical aspects renderbuilt-ing it a dynamic built-individual and built-ingintegrated programmers to leverage it for small built-in addition to big-scale actual projects.
built-information
As built-in the above solution, we are able to see that we have used two key phrases whilst defbuilt-inintegratedg it. So, let’s first recognize the built-ing of those first key phrases.

- excessive –degree Language
this is called a excessive –level language because it is very farther away from built-ineintegrated stage language (which built-includes zero’s and 1) and it’s hard to code. So, it built-in difficult to code whereas that is effortlessly readable so it's far very farther far from machbuiltintegrated stage language. So it turns builtintegrated a high-stage language. excessive-degree language syntax is greater readable built-in comparison to low-level language. One greater component that I would like is whilst we write this it isn't always a compiled language but an integratedterpreted one which means that it must be run with the aid of any other application, integrated this case, an integratedterpreter not by the processor, built-in contrast to c program languageperiod that is run directly by the processor.

- item-orientated Programmintegratedg Language
it's far an object-oriented programmintegratedg language which means it works on items. So what's an object? as an exampleintegrated, Tiger is an object whose shade and age are its attributes and looking and reproducintegratedg its behavior. So, as shown built-inintegrated above built-in an object has two characteristics: attributes and conduct. So, there are a few basic built-inciples of OOPs as built-in beneath:
Inheritance: In this situation, a toddlerintegrated elegance can use the conduct and attributes of the figure magnificence. Encapsulation: Hidintegratedg the non-public built-information of a category from other items.
Polymorphism: built-in a commonplace conduct/operation integrated built-indintegrated forms for extraordbuiltintegrated integratedputs.
- features:
1. designated reasons to built-ine Python.
2. built-ine Python with 320+ examples.
three. 7fd5144c552f19a3546408d3b9cfb251 compiler.
three. try It yourself with every built-instanceintegrated.
4. Code Editor with compiler and syntax highlightbuilt-ing that lets builtintegrated you to open and save documents from your garage.
5. Quizzes. project your self with 282 quiz objects.
6. you could proportion your certificate anywhere.
7. No advertisements.
eight. additional keyboard keys on editor.

built-in a hundred% of built-in development to acquire a certificate of completion.
every lesson is accompanied by means of quizzes that enhance your integrated development.
What are you built-ing? installation and learn Python now.




my-courses.net

Wednesday, October 28, 2020

features-Python-courses-python-exercises-python-oop

Exercie 73

Write a python algorithm which delete all vowels from a given string s. Example if s = "Python is hight level programming language", the algorithm returns the string: "Pthn s hght lvl prgrmmng lngg"

Solution

def deleteVowels(s):
    # define the liste of vowels
    vowels = ['a','e','y','u','i','o']
    
    # initializing the string without vowels
    s1 = ""
    
    # iterate over all characters in the string s
    for x in s:
        if x not in vowels:
            s1 = s1 + x
    return s1

# Example
s = "Python is hight level programming language"
print(deleteVowels(s)) 
# display: Pthn s hght lvl prgrmmng lngg


Younes Derfoufi
my-courses.net
Python-courses-python-exercises-python-dictionary

Exercise 72 **

Write a python algorithm to examine if an occurrence is present within a given string.

Solution

def examineOccurrence(s , occ):
    # getting the length of the occurrence occ and the len of the string s 
    m = len(occ)
    n = len(s)
    
    # initialize counter 
    counter = 0
    # searching the occurrence occ within the string s
    for i in range(0 , n-m):
        if s[i : m + i] == occ:
            counter = counter + 1
    if counter > 0:
        return True
    else:
        return False
    
# Example:
s = "Python is the most popular programming language"
occ1 = "most"
occ2 = "algorithm"
print(examineOccurrence(s, occ1)) # display: True
print(examineOccurrence(s, occ2)) # display: False


Younes Derfoufi
my-courses.net
Python-courses-python-exercises-python-certification

Exercise 71 **

Write a Python program which determines the minimum digit within a given string s. Example if s = "Python3.7 is more power than Python2.7" , the algorithm must returns 2. We assume that the string s does not contain any negative number.

Solution

def minimumDigit(s):
    # creating and initializing the list of digits 
    listDigits = []
    for x in s:
        if x.isdigit():
            x = int(x)
            listDigits.append(x)
    
    # initializing the minimum of digits
    minDigit = listDigits[0]
    
    # iterate over all list elements
    for n in listDigits:
        if minDigit > n:
            minDigit = n
    return minDigit
# Example:
s = "Python3.7 is more power than Python2.7"
print("The minimum  digit within s is : ", minimumDigit(s))
# The output is : The minimum  digit within s is :  2


Younes Derfoufi
my-courses.net

Tuesday, October 27, 2020

python-courses-python-exercises-python-tutorials-python-formation

Python has been an object-oriented language since it existed. on this academic we are able to try to get in-depth capabilities of OOPS in Python programming.
if you are looking for an application to research Python simple to increase without any programming understanding. you are at right place. whether you're an experienced programmer or now not, this software is supposed for every person who wishes to examine the Python Programming language. there is no need to net something - just click on on the set up you wish to start from, and follow the instructions. right good fortune!
that is an app for learn about programming and it associated subjects. There isn't a very good analyzing source to analyze coding in our usa in Sinhala. therefore our college students fail to face with this technology technology.
these days they are searching out programming sinhala, coding sinhala and software program engineering sinhala.. as a result we created this small software known as analyze Python in Sinhala in any other case Python sinhalen to enhance coding abilties of our u . s . a . humans..
object oriented Python short manual - examine item oriented Python in simple and easy steps starting from fundamental to advanced ideas with examples such as introduction, surroundings Setup, records systems, constructing Blocks, object orientated Shortcuts, Inheritance and Polymorphism, Python design sample, superior functions, files and Strings, Exception and Exception classes, object Serialization, Python Libraries.

audience
This tutorial has been prepared for the beginners and intermediate to help them apprehend the Python Oops functions and concepts through programming.

prerequisites
information on fundamental of Python programming language will help to apprehend and learn fast. if you are new to programming, it's far endorsed to first go through “Python for novices” tutorials.

object oriented Python brief guide - examine object oriented Python in easy and easy steps starting from fundamental to advanced ideas with examples which include advent, environment Setup, facts systems, building Blocks, item orientated Shortcuts, Inheritance and Polymorphism, Python layout sample, advanced features, files and Strings, Exception and Exception classes, item Serialization, Python Libraries.



my-courses.net
python-courses-python-exercises-python-tutorials-python-formation

Snap shots outline the world, every photograph has its own tale, it contains a whole lot of crucial facts that may be beneficial in many methods. This data can be obtained with the assist of the method referred to as picture Processing.
it's far the core a part of computer vision which plays a important position in many real-global examples like robotics, self-using vehicles, and item detection. image processing permits us to transform and control thousands of pictures at a time and extract useful insights from them. It has a wide variety of applications in almost every discipline.
Python is one of the extensively used programming languages for this reason. Its first-rate libraries and gear help in achieving the venture of picture processing very successfully.
thru this article, you may find out about classical algorithms, strategies, and tools to method the photograph and get the favored output. permit’s get into it!
what's picture processing?
as the call says, image processing method processing the image and this will encompass many exclusive strategies till we reach our intention.
The very last output can be both inside the form of an photograph or a corresponding characteristic of that image. this will be used for in addition analysis and selection making.

however what's an picture?
An photo may be represented as a 2nd function F(x,y) wherein x and y are spatial coordinates. The amplitude of F at a selected cost of x,y is referred to as the intensity of an photograph at that point. If x,y, and the amplitude fee is finite then we name it a digital photo. it's far an array of pixels arranged in columns and rows. Pixels are the factors of an image that comprise statistics approximately depth and colour. An image also can be represented in 3-d in which x,y, and z come to be spatial coordinates. Pixels are arranged within the form of a matrix. this is referred to as an RGB picture.
picture in second space

Python is an interpreted, excessive-level, trendy-motive programming language. Created through Guido van Rossum and first launched in 1991, Python's layout philosophy emphasizes code readability with its superb use of tremendous whitespace. Its language constructs and item-orientated method purpose to help programmers write clean, logical code for small and huge-scale projects.

Python is an smooth to analyze, powerful programming language. It has efficient high-degree information structures and a easy but effective technique to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it a perfect language for scripting and speedy application improvement in lots of areas on most platforms.
picture Processing Algorithms in Python
complete Python photo Processing with Scikit-photograph
NumPy
SciPy.
PIL/Pillow.
OpenCV-Python.
SimpleCV.
Mahotas.
SimpleITK.

photo Processing
Blonder
evaluation
Scikit
easy assessment
Brightness
Invert photograph colours
Face Detection
Face reputation




my-courses.net

Python Exercises With Solutions

  1. Exercises on Python Strings
  2. Exercises on Python lists
  3. OOP Exercices with solutions
  4. Exercises on Python File I/O
  5. Python Dictionary Exercises
  6. Python Sets Exercises
  1. Python Arithmetic Exercises
  2. Equations & System Of Equations
  3. Polynomials and Functions
  4. Python Arithmetic Exercises 
  5. Numpy, Matplolib, Sympy , Scipy - Exercises
  6. Python Arithmetic Exercises
  1. Python GUI Tkinter Exercises



Younes Derfoufi

Category Of Mobile Courses

Actualités (644) Adsense (1) Affiliation (1) Algebraic Topology (2) Algorithmic (1) all-news (30) Android (5) Android App (8) Android app without code (4) Android Apps (256) Android Development (4) Android download (2) Android OS (3) AngularJS (1) Automata theory and formal language (5) Bootstrap CSS (1) C programming (5) Category and Functor (8) CMS (3) Computer Glossary (18) Create Mobile App With Ionic Framework (2) CSS (2) CSS-Cascading-Style-Sheets (4) Developpement Java (13) Differential Geometry (1) Django-Python-Framework (9) dropshiping (26) Earn Money by Internet (4) Emplois (23) Framework php (2) Fraud (2) HTML (7) Java For Beginners (10) Javascript (12) Kotlin Programming Language (8) Kotlin For Mobile Android (1) Linux Download (2) Marketing (5) Mobile (3) Mobile Courses (4) Mobile Marketing (4) MoneyGram (1) News (721) Node.js (5) Open Source (1) Photoshop (1) Protect Computer (1) Python (35) Python BeautifulSoup (1) Python For Data Science (2) Python PyQt (4) Python Reference (1) Python-Books (6) Python-DVD-Training (1) Python-Exercises (263) Python-Framework (1) Python-IDE (1) Python-Kivy-Framework (2) Python-Modules (1) Python-pdf (2) Python-pyQt (1) Référencement (2) Script PHP (2) Security (6) SEO (1) Snipping Tool: Faq (1) Social Networks (1) Source Code (1) Statistics With SPSS (2) Surveillance Software (1) Travail à domicile (6) Tutoriels php en vidéos (2) Tutoriels-MySql (6) tutoriels-php (19) Utilitaires (1) VPS (1) Web Hosting (1) Webcam (1) Webmarketing (11) Western Union (1) Windows 10 (1) Windows 7 (4) Windows 7 Faq (2) Windows 8 (1) Windows Accessories (1) Windows Download (8) Windows Drivers (1) Windows Fonts (1) Windows Power Shell (2) Windows Registry (2) Windows Security (18) Windows Software (2) Windows Spyware (2) Windows utilities (3) Windows Virus (2) Windows Vista (3) Windows Wireless (1) Windows xp (1) Wordpress (1)
 

Sample text

Sample Text

 
Blogger Templates