Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

  • Home
  • Tutorials
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home /design a door mat

Discy Latest Questions

Sidharth
Sidharth

Sidharth

  • India
  • 10 Questions
  • 8 Answers
  • 0 Best Answers
  • 17 Points
View Profile
  • 4
Sidharth
Asked: May 2, 2021In: Python

what is the code to design a doormat in python?

  • 4

I am trying to write a code for the question, but I am unable to get the logic of the code. So can anyone write code to this question using python? Question: Mr. Vincent works in a doormat manufacturing company. One day, ...Read more

I am trying to write a code for the question, but I am unable to get the logic of the code. So can anyone write code to this question using python?

Question:

Mr. Vincent works in a doormat manufacturing company. One day, he designed a new doormat with the following specifications:

  • Mat size must be N x M. ( N is an odd natural number, and M is 3 times of N .)
  • The design should have ‘WELCOME’ written in the center.
  • The design pattern should only use |, . and - characters.

Input:  7 21

output:

---------.|.---------
------.|..|..|.------
---.|..|..|..|..|.---
-------WELCOME-------
---.|..|..|..|..|.---
------.|..|..|.------
---------.|.---------


Read less
codecodingdesign a door matproblem solvingpython
  • 1
  • 992
  • 0
Answer

Sidebar

Ask A Question

Stats

  • Questions 2,144
  • Answers 2,276
  • Posts 15
  • Best Answers 73
Clickable Image Description of the image

Explore

  • Home
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Recent Comments

  • Tech Answered Editorial Team on What should I check before buying a USB-C hub for my laptop?
  • Tech Answered Editorial Team on How do I choose a Wi-Fi router for a small home?
  • Tech Answered Editorial Team on Is a 65W USB-C charger enough for a laptop and phone?
  • Tech Answered Editorial Team on What Is Cloud Computing? AWS, Azure, and Google Cloud Explained
  • Tech Answered Editorial Team on What should I check before buying a USB-C hub for my laptop?
Ask A Question

Archives

Tags

Amazon India (2) Buying Guide (2) creative tools (2) printer buying guide (1) stop google news notifications (1)

Social media

© 2023 @ Techanswered.com.
Terms, Privacy policy & Sitemap.