HomeComputer SciencePracticalClass 12Update Table

Class 12 Programs

Quick Tips

  • • Import random module for number generation
  • • Use randint(1, 6) for dice simulation
  • • Handle user input validation properly

Update Table

AIM

To write a Python program

ALGORITHM

  1. Start
  2. Stop

PROGRAM

# Python program for basic arithmetic operations

OUTPUT

Basic Arithmetic Operations Calculator

CONCLUSION

Thus, the given program was successfully executed and the output was verified as per the expected result.

VIVA QUESTIONS

  1. What are arithmetic operators in Python?

    Arithmetic operators are symbols used to perform mathematical operations: +, -, *, /, %, //, and **.

  2. What is the UPDATE statement in SQL?

    UPDATE is a SQL statement used to modify existing records in a table, typically used with a WHERE clause to specify which records to update.