Introduction to Python Programming
Course Notes
π 164 pages
π Book link
#Python
βββββββββββββ
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Course Notes
π 164 pages
π Book link
#Python
βββββββββββββ
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Python tricks and tips
Section 2: Strings
Lesson 8: Creating a single string
Code snippet to copy:
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Section 2: Strings
Lesson 8: Creating a single string
Code snippet to copy:
a = [βIβ, βamβ, βnotβ, βavailableβ]
print(β β.join(a))Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Python tricks and tips
Section 2: Strings
Lesson 10: Checking if two words are anagrams
Code snippet to copy:
from collections import Counter
def is_anagram(str1, str2):
return Counter(str1) == Counter(str2)
print(is_anagram(βtasteβ, βstate))
print(is_anagram(βbeachβ, βpeachβ))
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Section 2: Strings
Lesson 10: Checking if two words are anagrams
Code snippet to copy:
from collections import Counter
def is_anagram(str1, str2):
return Counter(str1) == Counter(str2)
print(is_anagram(βtasteβ, βstate))
print(is_anagram(βbeachβ, βpeachβ))
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Python Frameworks and Libraries
Django is the most popular framework among Python developers. No surprise here, seeing how Web development is so popular among Python users. Interestingly, 43% of respondents are using IPython, which clearly shows itβs being used not only for scientific purposes, but for general software development as well.
A large number of respondents also specified Flask as their framework of choice.
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Django is the most popular framework among Python developers. No surprise here, seeing how Web development is so popular among Python users. Interestingly, 43% of respondents are using IPython, which clearly shows itβs being used not only for scientific purposes, but for general software development as well.
A large number of respondents also specified Flask as their framework of choice.
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Python tricks and tips
Section 3: Matrix
Lesson 11: Transposing a matrix
Code snippet to copy:
mat = [[8, 9, 10], [11, 12, 13]]
new_mat=zip(*mat)
for row in new_mat:
print(row)
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Section 3: Matrix
Lesson 11: Transposing a matrix
Code snippet to copy:
mat = [[8, 9, 10], [11, 12, 13]]
new_mat=zip(*mat)
for row in new_mat:
print(row)
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Python Notes
π 40 pages
π Book link
#Python
βββββββββββββ
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
π 40 pages
π Book link
#Python
βββββββββββββ
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Python Strings Cheat Sheet
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Python tricks and tips
Section 6: Dictionary
Lesson 13: Inverting the Dictionary
Code snippet to copy:
dict1={βaβ: 1, βbβ: 2,βcβ: 3,βdβ: 4,βeβ: 5,βfβ: 6, βgβ: 7}
dict2={v: k for k, v in dict1.items()}
print(dict2)
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Section 6: Dictionary
Lesson 13: Inverting the Dictionary
Code snippet to copy:
dict1={βaβ: 1, βbβ: 2,βcβ: 3,βdβ: 4,βeβ: 5,βfβ: 6, βgβ: 7}
dict2={v: k for k, v in dict1.items()}
print(dict2)
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Software Engine Usage
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Get all Off Campus Job alerts, internship updates, interview material regularly here π
@jobsandinternshipsupdates
@jobsandinternshipsindia
@jobsandinternshipsupdates
@jobsandinternshipsindia
Python tricks and tips
Section 6: Dictionary
Lesson 14: Iterating value pairs and dictionary keys
Code snippet to copy:
dict1={βaβ: 1, βbβ: 2, βcβ: 3, βdβ: 4, βeβ: 5, βfβ: 6}
for a, b in dict1.iteritems():
print (β{: {}β.format(a,b))
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Section 6: Dictionary
Lesson 14: Iterating value pairs and dictionary keys
Code snippet to copy:
dict1={βaβ: 1, βbβ: 2, βcβ: 3, βdβ: 4, βeβ: 5, βfβ: 6}
for a, b in dict1.iteritems():
print (β{: {}β.format(a,b))
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Get all Off Campus Job alerts, internship updates, interview material regularly here π
@jobsandinternshipsupdates
@jobsandinternshipsindia
@jobsandinternshipsupdates
@jobsandinternshipsindia
Python_Notes_Basics_of_Python_programmin.pdf
83.8 KB
Python Notes Basics of Python programming
π 29 pages
#Python
βββββββββββββ
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
π 29 pages
#Python
βββββββββββββ
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Python tricks and tips
Section 6: Dictionary
Lesson 15: Merging multiple dictionaries
Code snippet to copy:
x = {'a': 1, 'b': 2}
y = {'b': 3, 'c': 4}
z = {x, y}
print(z)
Join @python_programming_resources for moreππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Features of Python
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Chaining Of Comparison Operators
Code snippet to copy:
True
False
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Code snippet to copy:
n = 10
result = 1 < n < 20
print(result)
result = 1 > n <= 9
print(result)
Output:True
False
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
General python usage
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ
Join @python_programming_resources for more
ππ‘ππ’π¬ ππππ₯π‘ππ‘πππ