Загрузка...

Zero Error Python calculator || No Error || python program calculator #python

Zero Error Python calculator || No Error || python program calculator #python with source code-- ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ignore tages:- #python #popular #vscode #ideas #pythoncalculator #ide ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ source code:- while True: try: num1 = float(input("Enter a number: ")) num2 = float(input("Enter another number: ")) op = input("Enter an operator (+, -, *, /): ") if op == "+": result = num1 + num2 elif op == "-": result = num1 - num2 elif op == "*": result = num1 * num2 elif op == "/": if num2 == 0: raise ValueError("Cannot devide by zero") result = num1 / num2 else: raise ValueError("Invalid operator") print("Result:", result) except ValueError as e: print("Error:", e) except: print("Invalid input") user_input = input("Do you want to continue?(y/n)") if user_input == "n": break ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ OTHER INFORMATIONS: Video Recording: OFFLINE Code Recording Software: ClipChamp Video Editing: OFFLINE Code Editing Software: ClipChamp by Microsoft Thumbnail: OFFLINE Code (with the agreement of the illustrations used) Graphic Creation Soft: Photoshop CC 2021 (22.1.1) Computer specs: cpu: Intel CORE i5 & Gen ram: 8GB RAM ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ COPYRIGHT © OFFLINE CODE | 2021 - All rights reserved. No part of this video may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the me. For permission requests, write to the publisher, addressed “Attention: Permissions Coordinator,” at the address below.

Видео Zero Error Python calculator || No Error || python program calculator #python автора Python анализ данных в области спорта
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки