IF程序帮助IF Else [英] Python Program help with IF Else

查看:48
本文介绍了IF程序帮助IF Else的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我是计算机编程以及python的新手,所以请保持温和。我正在研究一个计算成绩的计划。当输入A,B,C,D或F以外的值时,我希望程序给出错误消息。这就是我想出的:

展开 | 选择 | Wrap | 行号

解决方案

展开 | 选择 | Wrap | 行号


非常快,我非常感谢帮助。


mike



非常快,我非常感谢帮助。


迈克



小心!你正在阅读时我正在编辑......


Hey, im new to computer programming as well as python, so please be gentle. Im working on a program that will calculate grades. When a value other than A,B,C,D, or F is entered, i want the program to give an error message. This is what i have come up with:

Expand|Select|Wrap|Line Numbers

解决方案

Expand|Select|Wrap|Line Numbers


that was amazingly fast, i really appreciate the help.

mike


that was amazingly fast, i really appreciate the help.

mike

Watch out! I was editing while you were reading...


这篇关于IF程序帮助IF Else的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆