当前位置:网站首页>The best shortcut is no shortcut
The best shortcut is no shortcut
2022-07-03 12:35:00 【iWillook】
#
# main.py
# Some Python Program
#
# Created by Mewlan Musajan on 4/28/21.
#
triangleLength1 = 0
triangleLength2 = 0
triangleLength3 = 0
def lengthInput():
global triangleLength1
global triangleLength2
global triangleLength3
triangleLength1 = input('Enter first length of your triangle: ')
triangleLength2 = input('Enter second length of your triangle: ')
triangleLength3 = input('Enter third length of your triangle: ')
def isLengthValid():
if triangleLength1 + triangleLength2 < triangleLength3\
or triangleLength1 + triangleLength3 < triangleLength2\
or triangleLength2 + triangleLength3 < triangleLength1:
print("Valid length provided.")
else:
print("Invalid length provided.")
while True:
lengthInput()
if triangleLength1 != 0 and triangleLength2 != 0\
and triangleLength3 != 0:
break
print("Length can't be nil.")
this 10 minute Python Teaching made me miserable .....
边栏推荐
- Sword finger offer04 Search in two-dimensional array [medium]
- 4000 word super detailed pointer
- 242. Effective letter heteronyms
- Shutter widget: centerslice attribute
- 2020-09_ Shell Programming Notes
- adb push apk
- Day 1 of kotlin learning: simple built-in types of kotlin
- Swagger
- Pytext training times error: typeerror:__ init__ () got an unexpected keyword argument 'serialized_ options'
- Atomic atomic operation
猜你喜欢
Sword finger offer03 Repeated numbers in the array [simple]
使用BLoC 构建 Flutter的页面实例
Use Tencent cloud IOT platform to connect custom esp8266 IOT devices (realized by Tencent continuous control switch)
【附下载】密码获取工具LaZagne安装及使用
Shutter widget: centerslice attribute
剑指Offer06. 从尾到头打印链表
LeetCode 0556.下一个更大元素 III - 4步讲完
Public and private account sending prompt information (user microservice -- message microservice)
2.8 overview of ViewModel knowledge
Cloud Computing future - native Cloud
随机推荐
Use bloc to build a page instance of shutter
Solve the problem of VI opening files with ^m at the end
Dart: about grpc (I)
(construction notes) grasp learning experience
Slf4j log facade
剑指Offer06. 从尾到头打印链表
elastic_ L04_ introduction. md
Alibaba is bigger than sending SMS (user microservice - message microservice)
启用MemCached的SASL认证
Flutter Widget : KeyedSubtree
公纵号发送提示信息(用户微服务--消息微服务)
error: expected reference but got (raw string)
Shutter: add gradient stroke to font
初入职场,如何快速脱颖而出?
The solution to change the USB flash disk into a space of only 2m
Sword finger offer06 Print linked list from end to end
Swift5.7 扩展 some 到泛型参数
Prompt unread messages and quantity before opening chat group
Flutter 退出登录二次确认怎么做才更优雅?
2.7 overview of livedata knowledge points