Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Help please # 1 . Write a program that accepts the lengths of three sides of a triangle as inputs. # The program output should
Help please
# 1 . Write a program that accepts the lengths of three sides of a triangle as inputs. # The program output should indicate whether or no the triangle is an equilateral triangle. # Example: # Enter the first side: 4 # Enter the second side: 4 # Enter the third side: 4 # The triangle is equilateral in 2 - input( 'Enter a string: ') # 2 . Write a conditional that checks the string fo a period ('.') and #if it is present then print + found period and then checks for # a tilde ('-') and if present then print '+] found tilde'. Print -1 nothing found' if there is not a period of a tilde in the string # Example: # Enter a string: test # [-] nothing found # Enter a string: file.pdf # [+] period found # Enter a string. ~\test.txt # [+] tilde found # [+] period found Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started