Yahoo India Web Search

Search results

  1. Jan 8, 2019 · I have been exploring Python & was making a program to generate a hollow diamond pattern like the one shown below: Here is its code. I would like to know what are other better ways to do it with less complexity (meaning less number of loops) #Top Left Triangle. for j in range(1, i+1):

  2. I've been struggling to create a function that can put out a default hollow square of 5x5 but then also take in 2 inputs. Here's the question: create a charsqr.py function that when imported will result in the following:

  3. Aug 9, 2010 · The print function has some useful extra arguments. So: You can either print each cell with an empty end and add a new line after each row:

  4. Apr 3, 2014 · any hint which would line it up correctly like this would be appreciated:): You need to do print('*' + gap*(width-2) + '*'). You forgot to account for the asterisks, so you have a couple extra spaces. You print the gap a number of times equal to the total width. Your actual gap should be 2 spaces smaller...

  5. Oct 1, 2019 · I used a two dimensional for loop to make a shape producing function for a class assignment but I couldn't get it to make a hollow square; only a filled one. I pass in two arguments the width and the symbol being used. I've played around with it several times but I eventually just turned it in with one incompletion. It should print something ...

  1. Searches related to hollow square pattern in python

    python online compiler
    hollow square pattern in java
  1. People also search for