Skip to content

Mbakaya/PyCodePractice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

PyCodePractice

This code is for anybody who wants to read python code or run, modify and practice it out or teach using actual running code. NB The code is has been commented per code block. To remove the commenting simply remove this triple quotes (''') on start of the code block.

The code is written as per python concept to help you learn programming concepts with python syntax, although not all topics on python syntax have been covered eg. Object oriented programming (OOP) in python has been left out in this edition.

1.Decison making & python loops

-Check Even or Odd


-Check Prime or Not


-Check Alphabet or Not


-Check Vowel or Not


-Check leap year or Not


-Check original equals Reverse or Not


-Python numbers used to hold numeric values

2.Python String

-string manupilation 

-sring escape

-string printing

-find length of string

-compare two strings

-string concatenation

-Reverse string

-Remove vowels from string 

-Remove punctuation from strings

-Remove/delete occurence of a word in a string

-Counting characters in python string

-Cunt numbers of each vowels

-Count word in sentence

3.Lists

4.Tuples

5.Dictionary

6.Python Functions

-function calling 

7.Python Modules

-calling Modules in python source file

-Time (Date& time | Display calendar)

8.Python File (I/O) Handling

-Open files

-Writing files

-Reading files

-Copying files

-Merging files

-Lisitng file directories

-Deleting files

9.Python Exception Handling

Go out and practice!

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published