HomeComputer SciencePracticalClass 11Binary File Update

Class 12 Programs

Quick Tips

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

MySQL-Alter 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 ORDER BY clause in SQL?

    ORDER BY is a SQL clause used to sort the results of a query in ascending (ASC) or descending (DESC) order based on specified columns.