+ 3
How to improve this code?
https://code.sololearn.com/WlNevg1gG2ax The idea is to make a simple program that tells you your name and age!
3 Answers
+ 7
mine I think you previously asked the same question and that thread has got all the answers.
https://www.sololearn.com/Discuss/1842896/?ref=app
Nonetheless, here's my answer:
1. You have used 4 paragraph tags. That means you will have text in 4 different lines only. I hope you know what is the basic definition of a paragraph - it start on a new line.
You could do it by string concatenation using JS like I have done in the aforementioned code. I know it sounds a bit complicated but trust me, it's not.
2. For one, you could evade the form tag but that won't be necessary. Check out the code below and see if it helps simplify things for you.
https://code.sololearn.com/WPLKBFMK1sBP/?ref=app
I hope it helps.
+ 4
Coding Guy 1. i dont know how to get all the answers in the <p> things in horizontal instead of vertical.
2. It seems like i made the code too complicated.. are there things that simplify it ?
+ 2
that looks alot easiers yes! Thanks and now ill try to make something today with all the knowledge i ve gained!