loader image

XXXXA11 – Python Programming

Unit 1

Digital Logic – Positive and negative logic, logic gates ,NOT gate, OR gate, AND gate, XOR and X-NOR gates, Universal gates- NAND gate, NOR gate,. Combinational circuits- Half adder, half subtractor, full adder, full subtractor, ripple carry adders, look-ahead carry adders, decoders, BCD to 7-segment decoder, encoders, multiplexers and demultiplexers.

Introduction to python, features, IDLE, python interpreter, Writing and executing python scripts, comments, identifiers, keywords, variables, data type, operators, operator precedence and associativity, statements, expressions, user inputs, type function, eval function, print function
 

Unit 2

Digital Logic – Positive and negative logic, logic gates ,NOT gate, OR gate, AND gate, XOR and X-NOR gates, Universal gates- NAND gate, NOR gate,. Combinational circuits- Half adder, half subtractor, full adder, full subtractor, ripple carry adders, look-ahead carry adders, decoders, BCD to 7-segment decoder, encoders, multiplexers and demultiplexers.

Boolean expressions, Simple if statement, if-elif-else statement, compound boolean expressions, nesting, multi way decisions. Loops: The while statement, range functions, the for statement, nested loops, break and continue statements, infinite loops.

Unit 3

Digital Logic – Positive and negative logic, logic gates ,NOT gate, OR gate, AND gate, XOR and X-NOR gates, Universal gates- NAND gate, NOR gate,. Combinational circuits- Half adder, half subtractor, full adder, full subtractor, ripple carry adders, look-ahead carry adders, decoders, BCD to 7-segment decoder, encoders, multiplexers and demultiplexers.

Functions, built-in functions, mathematical functions, date time functions, random numbers, writing user defined functions, composition of functions, parameter and arguments, default parameters, function calls, return statement, using global variables, recursion.
 

Unit 4

Digital Logic – Positive and negative logic, logic gates ,NOT gate, OR gate, AND gate, XOR and X-NOR gates, Universal gates- NAND gate, NOR gate,. Combinational circuits- Half adder, half subtractor, full adder, full subtractor, ripple carry adders, look-ahead carry adders, decoders, BCD to 7-segment decoder, encoders, multiplexers and demultiplexers.

String and string operations, List-creating list, accessing, updating and deleting elements from a list, basic list operations. Tuple-creatingand accessing tuples in python, basic tuple operations. Dictionary, built in methods to access, update and delete dictionary values. Set and basic operations on a set.

References

Digital Logic – Positive and negative logic, logic gates ,NOT gate, OR gate, AND gate, XOR and X-NOR gates, Universal gates- NAND gate, NOR gate,. Combinational circuits- Half adder, half subtractor, full adder, full subtractor, ripple carry adders, look-ahead carry adders, decoders, BCD to 7-segment decoder, encoders, multiplexers and demultiplexers.

  1. E. Balaguruswamy, Introduction to Computing and Problem Solving Using Python
  2. Richard L. Halterman, Learning To Program With Python
  3. Martin C. Brown, Python: The Complete Reference.