I am new to python. I recently created a grid in python to test myself, which worked out brilliantly.
The reason why the answers given in the other questions are not useful for me is because the code which is given to them is much more complex and since I am new to coding, I find it quite difficult to understand it. Also the diamonds miss one of the layers which I have.
I thought I would attempt to create a diamond something which would look like:
Please could someone show me what to do next - as I am quite confused.
D= int(input("Please enter the width of the diamond:"))
for x in range():
for y in range(height):
print('*', end=' ')
print()
I have tried multiple things but it is not working. Please can someone help me :)
Thanks to everyone that has answered my question. Could Someone just answer me this : If I wanted the diamond to have a width no more than 30 and the user inputted 35. How would I stop it from even printing thanks