firstly i want to make some kind of text based quiz program
I would suggest you first focus on this one, until it's running. The first thing you need is make clear for yourself what "some kind of" means. Without knowing what you want to have exactly, it's extremely hard to write code.
(It's like writing a solution without knowing what problem you are actually solving.)
Try to make more precise what should happen at each step, in each possible case. More details is better, Even more details is even more better.
A few questions to ponder and get you going:
- What should the program print first?
- Assuming you want to ask questions in your quiz, where do these come from? What information do you need with each question?
- If you have more than one question, how do you select one for the user?
- What information should you present to the user?
- What do you expect the user to reply?
- Can you skip a question?
- Can you ask for a different question?
- How do you decide the given answer is correct or wrong?
- What happens if the user gave the wrong answer?
- What happens if the user gave the right answer?
- What if he/she replies something else? (empty text, or "I don't know", for example)
- How do you decide the program is done?
Yep lots of questions you can ask eh? :)
The more clear it becomes to you what the program should exactly do, the easier it is to code, since you don't have to think about that while coding.
and what the code i use to define what the user is typing, if they can even type (plz tell me is this i possible and what program to run the code)
You better get good at finding answers to questions like this; programming is constantly working at the edge of what you know, and often even outside that.
I don't know the answer to your questions either, but I know search engines are pretty good at coughing up links to such answers. It's unlikely that you are the first person that want to read a line of text, so no doubt someone else has already asked this very question, and got an answer.