Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
# 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

3. Existing organizations and programs constrain behavior.

Answered: 1 week ago