Posts

PYTHON Programming Language

Syllabus: 7.6 Introduction to python programming 7.7 Basic syntaxes 7.8 I/O statements and string formatting 7.9 Data types and variables 7.10 Concept of Type casting 7.11 Operators and expressions: Arithmetic, Relational, Logical, Assignment   7.6 Introduction to Python Programming  Python : Python is a high-level, interpreted programming language created by Guido van Rossum in 1991. It is known for its simple and readable syntax, making it beginner-friendly and highly versatile. Python is widely used in web development, data science and machine learning, artificial intelligence, data analysis, automation and scripting, game development, web scraping, cyber security, etc. Python has a simple to understand coding style, applying indentation instead of braces to define blocks of code. For example, in a loop or conditional statement, indentation signifies the scope of the block.   Features of Python: 1)      Easy to read and write: Python uses simple and...

Advanced C with Madhav

Image
1. Variable Naming Rules in C Variables are names used to store data. Some rules are as follows: ✅ Valid Naming Rules: Must start with a letter (A-Z or a-z) or underscore _ Can contain letters, digits, and underscores (A-Z, a-z, 0-9, _) Cannot start with a digit No special characters like @ , # , % , & , etc. No spaces allowed Cannot use C keywords (e.g., int , float , if , etc.) Case-sensitive (e.g., score , Score , and SCORE are different) 🛑 Invalid Examples: int 1 value; // starts with a digit ❌ int total$; // contains special character ❌ int float ; // keyword used as name ❌ ✅ Valid Examples: int age; float total_marks; char _grade; 2. Format Specifiers in C Format specifiers are used with printf() and scanf() for input/output . Common Format Specifiers: Specifier Data Type Example %d int (integer) int age = 20; %f float float pi = 3.14; %lf double double d = 3.1415; %c char char grade = 'A'; %s string ...