+ 3
How can I make this code more attractive
9 ответов
+ 7
P A Arrchith Iyer ,
the *volume* and the *diagonal* are showing the same result value. this is not correct.
the calculation of the diagonal (in this case) of a 3d cube is: x * sqrt(3), where x is the side length.
the result of this calculation is a float like: 41.569219381653 if x is 24.
may be you can reduce the number of the digital places with the expression: {x * math.sqrt(3):.2f} in your f-string.
also this should be corrected: `Volume of this cube is 13824cm**2` => should be: ` ...cm**3`.
+ 6
P A Arrchith Iyer
In order to make your code more attractive for the common sololearner you should move to HTML/CSS/JavaScript. There you can design a colorful design with lots of animations, blinking smileys or fireworks. Only then you will be able to see your code in "HOT TODAY". 😁😂🤣
[posting consists of 5% truth and 95% sarcasm]
+ 5
Can you define what you mean by attractive?
+ 3
I'll correct it Lothar Thanks for your answer
+ 3
Like Jan M said...move to HTML/CSS/JavaScript 😊
+ 1
Like can we change the font
I searched it on Google but it only says yes but doesn't say how
+ 1
Jan Markus speaking straight facts
+ 1
Just create a program that does a bunch of ascii art, then you'll be top of the "HOT TODAY" section