当前位置:网站首页>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 .....
边栏推荐
- RedHat5 安装Socket5代理服务器
- 写一个简单的nodejs脚本
- (construction notes) learning experience of MIT reading
- Redis
- Summary of development issues
- Day 1 of kotlin learning: simple built-in types of kotlin
- DEJA_ Vu3d - cesium feature set 053 underground mode effect
- Integer int compare size
- Official website of Unicode query
- [ManageEngine] the role of IP address scanning
猜你喜欢

记录自己vulnhub闯关记录

2.8 overview of ViewModel knowledge

1-2 project technology selection and structure

Alibaba is bigger than sending SMS (user microservice - message microservice)

LeetCode 0556.下一个更大元素 III - 4步讲完

剑指Offer05. 替换空格

实现验证码验证

2021 autumn Information Security Experiment 1 (password and hiding technology)

Togaf certification self-study classic v2.0

剑指Offer04. 二维数组中的查找【中等】
随机推荐
232. Implement queue with stack
If you can't learn, you have to learn. Jetpack compose writes an im app (II)
The difference between lambda and anonymous inner class
雲計算未來 — 雲原生
regular expression
CNN MNIST handwriting recognition
(construction notes) learning experience of MIT reading
Integer string int mutual conversion
Use Tencent cloud IOT platform to connect custom esp8266 IOT devices (realized by Tencent continuous control switch)
The solution to change the USB flash disk into a space of only 2m
Prompt unread messages and quantity before opening chat group
02_ Lock the code, and don't let the "lock" become a worry
Official website of Unicode query
Redis
Unicode查询的官方网站
剑指Offer06. 从尾到头打印链表
Adult adult adult
Kubectl_ Command experience set
Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
初入职场,如何快速脱颖而出?