RECENT ARTICLES
Where do I start to learn programming/coding? - Computing Learner
Skip to contentYou will find many answers to the question where do I start to learn programming. I’ve been teaching programming for more than 20 years. So, here I’ll show you where do I think it is better to start according to my experience.According to my experience and the feedback I get every year from my students, the answer is very simple: algorithms. You should start learning algorithms first, then you can focus on learning a programming language.You will find several courses online, on different platforms, that teach you Python, or Java, or any other language. Those courses are not...…Skip to contentYou will find many answers to the question where do I start to learn programming. I’ve been teaching programming for more than 20 years. So, here I’ll show you where do I think it is better to start according to my experience.According to my experience and the feedback I get every year from my students, the answer is very simple: algorithms. You should start learning algorithms first, then you can focus on learning a programming language.You will find several courses online, on different platforms, that teach you Python, or Java, or any other language. Those courses are not...WW…
Roadmap to learn programming: don't learn a language - Computing Learner
Skip to contentA common question from people that want to learn programming is: what programming language should I learn first? What roadmap to learn programming should I follow?I’ve been reading answers to these questions, most of them focus on explaining why you should learn python first, java, or another programming language. You can read in other answers that it depends on the type of programmer you want to become: front-end, back-end, web, mobile, desktop?You cannot find what matters in those answers. Do you want to know what matters when you start learning programming? Keep...…Skip to contentA common question from people that want to learn programming is: what programming language should I learn first? What roadmap to learn programming should I follow?I’ve been reading answers to these questions, most of them focus on explaining why you should learn python first, java, or another programming language. You can read in other answers that it depends on the type of programmer you want to become: front-end, back-end, web, mobile, desktop?You cannot find what matters in those answers. Do you want to know what matters when you start learning programming? Keep...WW…
How to create a menu for a python console application? - Computing Learner
Skip to contentLearn to create a menu for a python console application from scratch. Also, find explanations on each part of the code and some extra considerations.To create a menu for a python console application, I recommend you the following: It is a good practice to implement different functions to handle the menu options. The previous makes the code more readable and easy to understand.With the infinite loop, we are going to print the menu. Then, we ask the user to choose an option.while(True):print_menu()option = int(input('Enter your choice: '))Notice that we are using the...…Skip to contentLearn to create a menu for a python console application from scratch. Also, find explanations on each part of the code and some extra considerations.To create a menu for a python console application, I recommend you the following: It is a good practice to implement different functions to handle the menu options. The previous makes the code more readable and easy to understand.With the infinite loop, we are going to print the menu. Then, we ask the user to choose an option.while(True):print_menu()option = int(input('Enter your choice: '))Notice that we are using the...WW…
4. Show that the additive inverse, or negative, of an even number is an even number using a direct proof - Computing Learner
Skip to contentLet’s refresh the concept of direct proof.“A direct proof of a conditional statement p → q is constructed when the first step is the assumption that p is true; subsequent steps are constructed using rules of inference, with the final step showing that q must also be true. A direct proof shows that a conditional statement p → q is true by showing that if p is true, then q must also be true, so that the combination p true and q false never occurs.” Discrete Mathematics and its Applications by Rosen.Let n be an even number.n=2k for some integer k.The additive inverse of n is...…Skip to contentLet’s refresh the concept of direct proof.“A direct proof of a conditional statement p → q is constructed when the first step is the assumption that p is true; subsequent steps are constructed using rules of inference, with the final step showing that q must also be true. A direct proof shows that a conditional statement p → q is true by showing that if p is true, then q must also be true, so that the combination p true and q false never occurs.” Discrete Mathematics and its Applications by Rosen.Let n be an even number.n=2k for some integer k.The additive inverse of n is...WW…
6- Use a direct proof to show that the product of two odd numbers is odd - Computing Learner
Skip to content“A direct proof of a conditional statement p → q is constructed when the first step is the assumption that p is true; subsequent steps are constructed using rules of inference, with the final step showing that q must also be true. A direct proof shows that a conditional statement p → q is true by showing that if p is true, then q must also be true, so that the combination p true and q false never occurs.” Discrete Mathematics and its Applications by Rosen.Let n and m be two odd numbers.n=2k+1 and p=2t+1 for some integers k and t (definition of odd...…Skip to content“A direct proof of a conditional statement p → q is constructed when the first step is the assumption that p is true; subsequent steps are constructed using rules of inference, with the final step showing that q must also be true. A direct proof shows that a conditional statement p → q is true by showing that if p is true, then q must also be true, so that the combination p true and q false never occurs.” Discrete Mathematics and its Applications by Rosen.Let n and m be two odd numbers.n=2k+1 and p=2t+1 for some integers k and t (definition of odd...WW…
- Total 5 items
- 1