Posts

Showing posts from September, 2023

Featured Post

How To Use Python Input Function

Image
 How To Use Python Input Function Introduction  This Python Beginner tutorial will guide you on the usage of input() function in python. We use input function in all our Python Projects, so, it's necessary to understand,  what is input function, how it is used and why it is used in python projects.  What is input() function  Python input() function is a function that accepts input values from a user when prompted to provide an input. It is an inbuilt function that reads the input values from the user and after evaluating it, by default, the input() function will return the input as a string. The input function doesn't have parameters inside its parenthesis, but, it takes a prompt in the form of a string inside it's parenthesis. For example: Consider a variable that you created , name, and you want to get input of different name values from the user, so you use the input function with a prompt inside it's parenthesis as shown below: CODE name = input(...

Build Todo App React Hooks

Image
 Build Todo App React Hooks This tutorial will teach you how to build a To do list App using React, hooks, in a step-by-step manner with complete code and explanations of React hooks concepts in a very easy-to-understand manner. Below, I am displaying the code editor with the first part of the code for creating a Todo function for the javascript code: START THE APP import   React , { useState }  from   'react' ; import   ReactDOM   from   'react-dom' ; To start the App, you need to import React useState() from 'react' and also import ReactDOM from 'react-dom' By importing the useState() , we are able to use the state hook without the need to use classes in React apps. By importing the default ReactDOM, we are able to write JSX and carry out DOM related methods. But before that, as usual, for the html code, it is : HTML < div   id  =  "container" >   JAVASCRIPT  import   React , { useState }  from ...