1 print hello program print(“Hello, World!”)Hello, World! 2 if problem if 5 > 2: print(“Five is greater than two!”) 3 if else problems a = 200b = 33if b > a: print(“b is greater than a”)else: print(“b is not greater than a”) 4 if elif problem a = 200b = 33if b > a: print(“bContinue reading “Python programming”
Category Archives: Uncategorized
Python function
What is a function in Python? In Python, a function is a group of related statements that performs a specific task. Functions help break our program into smaller and modular chunks. As our program grows larger and larger, functions make it more organized and manageable. Furthermore, it avoids repetition and makes the code reusable. AContinue reading “Python function”
Python keyword and identifiers
Python KeywordsKeywords are predefined, reserved words used in Python programming that have special meanings to the compiler. We cannot use a keyword as a variable name, function name, or any other identifier. They are used to define the syntax and structure of the Python language. All the keywords except True, False and None are inContinue reading “Python keyword and identifiers”
Python information
What is Python?Python is a popular programming language. It was created by Guido van Rossum, and released in 1991. It is used for: web development (server-side),software development,mathematics,system scripting. What can Python do?Python can be used on a server to create web applications.Python can be used alongside software to create workflows.Python can connect to database systems.Continue reading “Python information”