Posts

Showing posts with the label codinindia

Components of VIRTUAL REALITY (VR) | Codin india

Image
  The Virtual Reality is basically made up of hardware and software components. Hardware components includes computer or VR engine and I/O devices whereas software components include application software and database. ·        Virtual Reality System Hardware   The major components of the hardware are the VR engine or computer system, input devices and output devices        I.             Input Devices   The input devices are the means by which th e user interacts with the virtual world. They send signals to the system about the action of the user, so as to provide appropriate reactions back to the user through the output devices in real time. They can be classified into tracking device, point input device, bio-controllers and voice device. Tracking devices sometimes referred to as position se nsors, are used in tracking the position of the user, and they include, electromagnetic, ultras onic, optical, mechanical and gyroscopic sensors, data gloves, neural and bio or m

How to search for a string in text files in Python?

Image
  In this article, we are going to see how to search for a particular string in a text file.  Ex:- We have a text file and we want to search a particular string from that file with different methods. Consider we have text file with some text bellow:-  " This is Codin India.  A Coding Platform for programmers   You can learn programming from this portal   We are expert in Python and every day we come with tips and tricks   This Channel is owned by Digamber Jha  "   We can see different method one by one. Lets start with first method. Method 1:-  First We will just find the string is present in the file or not.  If the string found then we will print  the output. Steps for searching:- Open a file. Read the file and store it in a variable. Check the condition using If statement. If the condition is true print "String found" else "String not found". Close the file. Output:- This is simple method for finding the string or text from file but has some limitations