Skip to content

Commit

Permalink
7-5-20
Browse files Browse the repository at this point in the history
  • Loading branch information
ahammadshawki8 committed May 7, 2020
1 parent 8bae330 commit b69eea6
Show file tree
Hide file tree
Showing 42 changed files with 16 additions and 47 deletions.
2 changes: 1 addition & 1 deletion python1 (intro to python).py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# module 1
# Let's Start

# my first python programme -this is called comment.
# print-it is a command.
# "hello world"-it is string of text.
Expand Down
2 changes: 1 addition & 1 deletion python10 (if statement).py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# module 10
# if statement

answer = input("Do you buy a ice-cream for me? (yes/no)\n")
if answer =="yes": # if statement allows us to specify code that only executes if a specific condition is true.
print("Of course. Why not?") # we have to press TAB before writing down print command.
Expand Down
1 change: 0 additions & 1 deletion python11 (if statement in complex situation).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 11
# using if statement in complex situation

# elif
Expand Down
9 changes: 5 additions & 4 deletions python12 (for loop).py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# module 12

# Repeating events
# Using loop
# Using for loop

import turtle # turtle is a library that helps us to draw.
turtle.color("blue")
turtle.forward(100)
Expand Down Expand Up @@ -200,4 +199,6 @@
print("found!")
continue
print(n)
# continue will skip to next value of the loop.
# continue will skip to next value of the loop.

turtle.done()
2 changes: 1 addition & 1 deletion python13 (while loop).py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# module 13
# repeating events until they have done.
# using while loop

answer="0"
while answer != "4": # while loop allows us to execute our code until a perticular condition is true.
answer=input("what is 2 + 2 ?")
Expand Down
1 change: 0 additions & 1 deletion python14 (lists).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 14
# lists

guests=["Shawki","Ramos","Ronaldo","Marcelo"]
Expand Down
1 change: 0 additions & 1 deletion python15 (writing files with python).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 15
# working with files

# how do we write a file with code?
Expand Down
1 change: 0 additions & 1 deletion python16 (reading from files).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 16
# reading from file

# how do we read the file content?
Expand Down
1 change: 0 additions & 1 deletion python17 (dictionary).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 17
# using dictionary in python

# how to open a dictionary.
Expand Down
1 change: 0 additions & 1 deletion python18 (sets).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 18
# sets

# what is a set?
Expand Down
1 change: 0 additions & 1 deletion python19 (tuples).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 19
# tuples

# tuples are pretty much simmilar to list.
Expand Down
1 change: 0 additions & 1 deletion python2 (displaying text and string).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 2
# displaying text

#to make multiple line we can- 1.add \n in the string or, 2.use print command again and again.\n means newline.
Expand Down
1 change: 0 additions & 1 deletion python20 (functions).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 20
# functions

# what will funtions do for us?
Expand Down
1 change: 0 additions & 1 deletion python21 (error handling).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 21
# error handling

# Things go wrong in programmes as well.
Expand Down
1 change: 0 additions & 1 deletion python22 (slicing).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 22
# slicing

# slicing list
Expand Down
1 change: 0 additions & 1 deletion python23 (map, filter, reduce functions).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 23
# map, filter & reduce function.

# map function
Expand Down
2 changes: 1 addition & 1 deletion python24 (lambda expression).py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# module 24
# lambda expression

# lambda expression is a special kind of function which doesnt have any name.
# it is also called anonymous function.
# lambda expression always return the value, it doesnt print it.
Expand Down
1 change: 0 additions & 1 deletion python26 (Counter Class).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 26
# Counter Class

# In different programming problems, sometimes we have to keep a count of different items in our list.
Expand Down
1 change: 0 additions & 1 deletion python27 (Iterables, Generators and yeild).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Module 27
# Iterables, Generators and yeild function

# QUESTION:
Expand Down
1 change: 0 additions & 1 deletion python28 ( 5 common mistakes in python).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 28
# 5 common mistakes in python.

# mistake 1
Expand Down
1 change: 0 additions & 1 deletion python29 (10 Quick tips for python coders).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 29
# 10 quick tips for python coders.

# tip 1
Expand Down
2 changes: 1 addition & 1 deletion python3 (finding mistakes).py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# module 3
# Finding mistakes

# Its a common thing to have mistakes in your code. But we have to find the mistakes and solve it.
# The first thing that help us for finding our mistakes is colour. So, colour coding is very important.

Expand Down
1 change: 0 additions & 1 deletion python30 (more tips).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 30
# more tips

# tip1
Expand Down
1 change: 0 additions & 1 deletion python31 (range vs xrange).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 31
# range() vs xrange()

# in python2, there are 2 functions range and x range()
Expand Down
1 change: 0 additions & 1 deletion python32 (array).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 32
# Array

# array ia simmilar with lists in python.
Expand Down
1 change: 0 additions & 1 deletion python33 (decorators).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 33
# decorators

# we have to learn first class function and closures concept first to learn decorators.
Expand Down
2 changes: 1 addition & 1 deletion python33_extra (decorators with arguements).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# module 33_extra
# extra
# decorators with arguements

# it is a very important concept that we will see time to time.
Expand Down
3 changes: 1 addition & 2 deletions python34 (if __name__).py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# module 34
# if __name__=="__main__"
# if __name__ == "__main__":

# this is something that we probably going to see a lot in python.

Expand Down
1 change: 0 additions & 1 deletion python35 (hiding secret keys).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 35
# hiding secret keys.

# we will learn how we can save seccret keys in environment variable and use that in our python module.
Expand Down
1 change: 0 additions & 1 deletion python36 (namedtuple).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 36
# namedtuple

# in this module, we will look what is namedtuple? and why we should use them?
Expand Down
1 change: 0 additions & 1 deletion python37 (Image Manipulation).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 37
# image manipulation with pillow.

# in this series we will look at the pillow library for python.
Expand Down
1 change: 0 additions & 1 deletion python38 (Turtle).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 38
# turtle library

# turtle graphics is basically nice and easy tool that allows us to make fun little animation with coding.
Expand Down
1 change: 0 additions & 1 deletion python39 (Duck Typing & EAFP).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# python 39
# duck typing and asking forgiveness, not permission (EAFP)

# in this module, we will go over couple of aspects of being pythonic.
Expand Down
2 changes: 1 addition & 1 deletion python4 (strings and variables).py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# module 4
# Strings and Variables

# The input function allows you to specify a massage to display and returns the value typed in by user.
# We use a variable to remember the value entered by the user.
# name = is a variable.
Expand Down
1 change: 0 additions & 1 deletion python40 (logging basics).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 40
# logging basics

# we can do lots of things in logging in python.
Expand Down
1 change: 0 additions & 1 deletion python41 (logging advanced).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 41
# advanced logging

# in this module, we will learn about loggers, different handlers and some other things.
Expand Down
2 changes: 1 addition & 1 deletion python5 (manipulating code).py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# module 5
# manipulate the contents of variables.

# lower, upper, swapcase are different string functions.

message="Hello world"
Expand Down
1 change: 0 additions & 1 deletion python6 (solving math with python).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 6
# Solving math

# addition + exp: 5+1=6
Expand Down
1 change: 0 additions & 1 deletion python7 (programmer-user interaction).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 7
# asking user to input number

# there are functions to convert from one datatype to another.
Expand Down
1 change: 0 additions & 1 deletion python8 (working with dates).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module 8
# Working with dates

import datetime # the import statement gives us access to the functionality of datetime module. It is actually means to avialable any module.
Expand Down
4 changes: 2 additions & 2 deletions python9 (working with time).py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# module 9
# working with times
# working with time

import datetime
current_time=datetime.datetime.now()# the part after "=" is the code which access the current_time in our code. Now is a function which returns present time.
print(current_time)
Expand Down
1 change: 0 additions & 1 deletion pythonLast (Advanced python).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# module last
# advanced python

# what is advanced python?
Expand Down

0 comments on commit b69eea6

Please sign in to comment.