20
loading...
This website collects cookies to deliver better user experience
welcome = 'Hello, World!'
print(welcome)
welcome = 'Hello, World!'
jant ='1234'
print(welcome)
** capitalize()- returns a string where the first character is upper case.Check out this example Google Collab
** count() - Returns the number of times a specified value occurs in a string. Check Google Collab
** endwith()-Returns true if the string ends with the specified value
** isnumeric() - Returns True if all characters in the string are numeric
** replace() - Returns a string where a specified value is replaced with a specified value
String methods will improve your productivity as you build you embark on the journey to become Python Ninja.As I may not go through all the existing methods Read more
* Single line comment;written by placing '#' before the line e.g #the line declares a variable
* Multiple line comment: conventionally,Python does not really have a syntax for multi line comments.Although you can opt to use '#' on every line you wish to comment or use tripple-double quotes at the opening and closing of the comment
* Numbers: Examples. Integers; 5,-4,99999
Float;7.5,2e10(scientific notation).
complex numbers; 2 + 3j
Boolean;True , false
* Strings
* List
* Tuple
* Dictionaries
3.Object-oriented programming
Object-oriented programming is aprogramming paradigm that provides a means of structuring programs so that properties and behaviors are bundled into individual objects.Basic,entities are defined as object At this level,you will focus on creating classes and principles of object-oriented programming:Encapsulation, Abstraction,Polymorphism,Inheritance
At this level,you are ready to focus on your niche,as indicated above.As you learn ,always refer to Python Documentationfor detailed understanding