Difference Between Electric Circuit and Magnetic Circuit

Manish Kumar Saini
Updated on 14-Sep-2023 01:22:09

44K+ Views

A circuit is a type of network having a closed path for the flow of either electric current or magnetic flux. A circuit mainly consists of three major parts viz. source, path or conductor and load. In simple words, the term circuit can be used to represent any fixed path through which electricity, data, single or magnetic flux can flow.Depending on the type of quantity (electric current or magnetic flux), the circuits can be of two types as −Electric circuitMagnetic circuitIn this article, we are going to see the differences between electric circuit and magnetic circuit. Also, we have added ... Read More

Resize an Image Using Tkinter

Dev Prakash Sharma
Updated on 14-Sep-2023 01:11:33

40K+ Views

To process images with Tkinter and other Python packages, we generally use the Pillow Package (or PIL) in Python. It provides a way to load, process, manipulate, convert, and helps to resize the images. The package can be installed by using the command pip install Pillow. Once the package is installed, we can import it using the 'from PIL import Image, ImageTk' command.To resize an image using the PIL package, we have to follow these steps −Install Pillow Package or PIL in the local machine.Open the Image using Open(image_location) method.Resize the given image using resize((w, h), Image.ANTIALIAS) method where ANTIALIAS removes ... Read More

Roman to Integer in Python

Arnab Chakraborty
Updated on 14-Sep-2023 01:09:07

37K+ Views

Suppose we have Roman literals; we have to convert them into an integer. As we know the Roman numerals represent in some different symbols as below −NumeralValueI1V5X10L50C100D500M1000If we see the roman numbers closely, it is like suppose the numeral is 'II', so this is 2, there are two 'I's are added together. For XII, it is 12, so this is actually X + II = 10 + 2 = 12. The roman numerals of 4 are not IIII, it is IV. This is a little tricky.I can be used before V(5) and X(10) to make it 4 and 9 respectivelyX ... Read More

Differences Between Virtual Circuits and Datagram Networks

Kiran Kumar Panigrahi
Updated on 13-Sep-2023 16:16:37

35K+ Views

Both Virtual Circuits and Datagram Networks are the types of connection services which are used for transmission of information from a sender to a receiver. The most basic difference between the two is that the virtual circuits are connection oriented services that require resources like buffers, CPU, bandwidth, etc., for a data transfer session, while the datagram networks are connectionless services where no such resources are required for data transmission. There are many other key differences between virtual circuits and datagram networks, which we will discuss in this article. What are Virtual Circuits? Virtual Circuit is a connection oriented service ... Read More

Discuss I/O Interface in Computer Architecture

Ginni
Updated on 13-Sep-2023 15:57:15

41K+ Views

The I/O interface supports a method by which data is transferred between internal storage and external I/O devices. All the peripherals connected to a computer require special communication connections for interfacing them with the CPU.I/O Bus and Interface ModulesThe I/O bus is the route used for peripheral devices to interact with the computer processor. A typical connection of the I/O bus to I/O devices is shown in the figure.The I/O bus includes data lines, address lines, and control lines. In any general-purpose computer, the magnetic disk, printer, and keyboard, and display terminal are commonly employed. Each peripheral unit has an ... Read More

Elementary Data Link Protocols

Chandu yadav
Updated on 13-Sep-2023 15:56:09

69K+ Views

Protocols in the data link layer are designed so that this layer can perform its basic functions: framing, error control and flow control. Framing is the process of dividing bit - streams from physical layer into data frames whose size ranges from a few hundred to a few thousand bytes. Error control mechanisms deals with transmission errors and retransmission of corrupted and lost frames. Flow control regulates speed of delivery and so that a fast sender does not drown a slow receiver.Types of Data Link ProtocolsData link protocols can be broadly divided into two categories, depending on whether the transmission ... Read More

Select All Columns Except One in a Pandas DataFrame

Rishikesh Kumar Rishi
Updated on 13-Sep-2023 15:54:47

35K+ Views

To select all columns except one column in Pandas DataFrame, we can use df.loc[:, df.columns != ].StepsCreate a two-dimensional, size-mutable, potentially heterogeneous tabular data, df.Print the input DataFrame, df.Initialize a variable col with column name that you want to exclude.Use df.loc[:, df.columns != col] to create another DataFrame excluding a particular column.Print the DataFrame without col column.Example Live Demoimport pandas as pd df = pd.DataFrame(    {       "x": [5, 2, 1, 9],       "y": [4, 1, 5, 10],       "z": [4, 1, 5, 0]    } ) print("Input DataFrame is:", df) col ... Read More

Find the R Version You Are Using

Nizamuddin Siddiqui
Updated on 13-Sep-2023 15:53:58

46K+ Views

Most of the times, we need to use packages in R and some packages are restricted to different versions in R, generally to newer versions. Therefore, we might need to find which version of R we are using. To find the R version, we can directly use the command R.Version().Example Live DemoR.Version()Output$platform [1] "x86_64−w64−mingw32" $arch [1] "x86_64" $os [1] "mingw32" $system [1] "x86_64, mingw32" $status [1] "" $major [1] "4" $minor [1] "0.2" $year [1] "2020" $month [1] "06" $day [1] "22" $`svn rev` [1] "78730" $language [1] "R" $version.string [1] "R version 4.0.2 (2020−06−22)" $nickname [1] "Taking Off Again"We can ... Read More

Extended Entity-Relationship (EER) Model

Ricky Barnes
Updated on 13-Sep-2023 15:51:51

53K+ Views

EER is a high-level data model that incorporates the extensions to the original ER model. Enhanced ERD are high level models that represent the requirements and complexities of complex database.In addition to ER model concepts EE-R includes −Subclasses and Super classes.Specialization and Generalization.Category or union type.Aggregation.These concepts are used to create EE-R diagrams.Subclasses and Super classSuper class is an entity that can be divided into further subtype.For example − consider Shape super class.Super class shape has sub groups: Triangle, Square and Circle.Sub classes are the group of entities with some unique attributes. Sub class inherits the properties and attributes from ... Read More

Compare Two Objects in JavaScript

Nikhilesh Aleti
Updated on 13-Sep-2023 15:50:19

24K+ Views

Objects in JavaScript is an entity, where it consists of properties and type. Let’s consider sports as an object, in Car the properties can be color, price, height, width, etc. Exactly the same also happens in JavaScript, which has objects and contains properties to them. Const car = { color : 'Black', price : 2500000, height : '6 feet', width : '5 feet' } The equality operator (===) verifies whether the two operands are equal or not and returns a Boolean value. If the both operands are ... Read More

Advertisements