Posts

Showing posts from December, 2022

What is if-else in python

Image
Python Conditions and If statements Python helps the standard logical situations from mathematics: Equals: a == b Not Equals: a != b Less than: a < b xss=removed> b Greater than or same to: a >= b These situations may be utilized in numerous ways, maximum normally in "if statements" and loops. An "if statement" is written via way of means of the usage of the if keyword. Example: If Statement: a = 33 b = 200 if b > a:   print("b is greater than a") If  Else Else The else key-word catches something which isn`t stuck via way of means of the previous conditions. Example : if Else: a = 200 b = 33 if b > a:   print("b is greater than a") elif a == b:   print("a and b are equal") else:   print("a is greater than b") Elif The elif key-word is pythons manner of saying "if the preceding situations have been now no longer true, then do this condition". Example Elif : a = 33 b = 33 if b > a:   print("b is...

What are the 4 data types in Python?

Image
Data Type?  Data types are the bracket or categorization of data particulars. It represents the kind of value that tells what operations can be performed on a particular data. Since everything is an object in Python programming, data types are actually classes and variables are case( object) of these classes.     Following are the standard or erected- in data type of Python  Numeric   Sequence Type   Boolean   Set  Dictionary  Numeric In Python, numeric data type represent the data which has numeric value. Numeric value can be integer, floating number or even complex numbers. These values are defined as int, float and complex class in Python. Integers – This fee is represented with the aid of using int class. It includes nice or poor complete numbers (with out fraction or decimal). In Python there may be no restrict to how lengthy an integer fee can be. Float – This fee is represented with the aid of using flow class. It...

What are Python variables with example -thefreegyan

Image
  Variable in Python Variables definition Variables are boxes for storing information values . Creating Variables Python has no command for putting forward a variable. A variable is created the instant you first assign a cost to it. Example : x = 5 y = "John" print(x) print(y)  x is a variable ok. Variable names  A variable can have a short name (like x and y) or a more descriptive name (age, autoname, total volume) Rules for Python variables: A variable name must start with a letter or the underscore character A Variable name cannot start with a number beginA variable name can only contain alphanumeric characters and underscores (A-z, 0-9 and _). Variable names are case sensitive (age, Age and AGE are three different variables) Example : myvar = "John" my_var = "John" _my_var = "John" myVar = "John" MYVAR = "John" myvar2 = "John" print(myvar) print(my_var) print(_my_var) print(myVar) print(MYVAR) print(myvar2) Many ...

what is python used for - thefreegyan

Image
 What is Python? Python is a famous programming language. It turned into created via way of means of Guido van Rossum , and launched in 1991. It is used for: Net development (server-side), Software Program development, mathematics, device scripting. Why python learn? Python works on exclusive platforms (Windows, Mac, Linux, Raspberry Pi, etc). Python has a easy syntax just like the English language. Python has syntax that permits builders to write down applications with fewer traces than a few different programming languages. Python runs on an interpreter system, that means that code may be completed as quickly as it's far written. This way that prototyping may be very quick. Python may be handled in a procedural manner, an object-orientated manner or a useful manner. Good to know The maximum current predominant model of Python is Python 3,Current version Python3.11.1 , which we will be the usage of on this academic. However, Python 2, despite the fact that now no longer being ...

What is Data with full detail || thefreegyan

Image
 What is Data? Data is a series of Anformation. One motive of Data Science is to shape data, making it interpretable and effortless to work with. Data can be classified into two groups : Structured data Unstructured facts  Unstructured Data Unstructured statistics is now not organized. We have to prepare the facts for evaluation purposes. How to Structure Data? We can use an array or a database desk to structure or existing data. Example of an array: [80, 85, 90, 95, 100, 105, 110, 115, 120, 125]  Different between Data vs Information Data  Data are the variables that help to develop ideas/conclusions. Data are text and numerical values. Data doesn’t rely on Information. Bits and Bytes are the measuring unit of data. Data can be easily structured as the following: 1.Tabular data 2.Graph 3.Data tree Data does not have any specific purpose It is low-level knowledge. Data does not directly helps in decision making. Data is collection of facts, which it self have no mean...

What is utility software with full information | thefreegyan

Image
 What is utility software? These software program analyzes and keep a computer. These software program are targeted on how OS works on that foundation it function undertaking to allow easy functioning of computer. These software program may additionally come alongside with OS like home windows defender, home windows disk cleanup tool. Antivirus, backup software, file manager, disk compression device all are utility software.   Some of the famous utility software program are described under: Antivirus: It is used to defend a laptop from the virus. It detects a virus and notify the consumer and take motion to invulnerable the computer. The virus are stored in exceptional place referred to as vault the place it has special file gadget due to which virus impact it. User can itself train antivirus to delete malicious program, put it in vault or even omit it. These days most come in GUI form. The first antivirus software regarded in 1987 with the introduction of an antivirus a...

Types of digital currencies,keyTakeways,pros&cons,future uses

Image
 What is a digital currency? Digital currency is a form of currency that is only available  in digital or electronic form. It is also called digital money , electronic money, electronic currency or cyber cash.   KEY TAKEAWAYS Digital currencies are currencies that can only be accessed with computers or mobile phones as they only exist in electronic form. Typical digital currencies do not require intermediaries and are often the cheapest way to trade currencies. All cryptocurrencies are digital currencies, but not all. Digital currencies are cryptocurrencies. Some of the benefits of digital currencies are that they allow for a seamless transfer of value and can reduce transaction costs.  Understanding digital currency Digital currencies  have no physical attributes and are only available  in digital form. Digital currency transactions are carried out using computers or electronic wallets connected to the Internet or certain networks. In contrast, physical cu...

How to minimize the side effects of using social media

Image
While we don't yet have conclusive evidence that social media use actually causes depression, we do have many warning signs that it could negatively impact our children. Using the media  to make sure it's positive and healthy, and pointing them to ways to change it if you feel it isn't.  Also watch out for symptoms of depression . If you notice signs that your child might be depressed, take them seriously. Ask how your  child is doing and don't hesitate to make an appointment with a mental health provider.  What role does social media play  in depression?   Things you can do to ensure healthy social media use:  Focus on balance : Make sure your kids  also participate in offline social interactions and make time for activities that help build identity online and build self-confidence .  Disable notifications : App developers are becoming increasingly aggressive with notifications to trick users into interrupting everything they are doing to...

How social media affects your mental health

Image
What role does social media play  in depression?  One of the biggest differences in the lives of today's teens and young adults compared to previous generations is that they spend far less time connecting in person with their peers  and spend more time connecting electronically, primarily via social networks . Some experts see the rise in depression as evidence that the connections social media users make electronically are less emotionally fulfilling and leave them feeling socially isolated. Benefits of  social interaction,” says Alexandra Hamlet, PsyD, a clinical psychologist. "The more superficial it is, the less likely it is to make you  feel connected, which is something we all need. Indeed, one exception to the correlation with Social media depression   is that girls use social media frequently, but also engage in high levels of face-to-face social interaction. Twenge's study showed that  girls who interact intensively with each other both o...