Python Tutorials: Logical Operators In Python

Logical operators are used to connect more relational operations to form a complex expression called logical expression. A value obtained by evaluating a logical expression is always logical, i.e. either…

Read more »

Python Tutorials: Relational/ Comparison Operators In Python

Relational operators are used to compare the value of operands (expressions) to produce a logical value. A logical value is either True or False.

Read more »

Python Tutorials: Arithmetic Operators In Python

Arithmetic Operators are used to perform basic arithmetic operations like addition, subtraction, division etc.

Read more »

Python Tutorials: Operators In Python

An operator is a symbol that performs an operation.1.Arithmetic Operators2.Relational Operators / Comparison Operators3.Logical Operators4.Assignment Operators5.Bitwise Operators6.Membership Operators7.Identity Operators

Read more »

Python Tutorials: DataTypes In Python

Datatype represents the type of data stored into a variable or memory.Type of Data type :-1.Built-in Data type2.User Defined Data type Built-in Datatype These datatypes are provided by Python Language.Following…

Read more »

Python Tutorials: Variables In Python

In C, Java or some other programming languages, a variable is an identifier or a name, connected to memory location. In Python, a variable is considered as tag that is…

Read more »

Python Tutorials: Constants In Python

A constant is an identifier whose value cannot be changed throughout the execution of a program whereas the variable value keeps on changing.There are no constants in Python, the way…

Read more »

Python Tutorials: Keywords or Reserved Words In Python

Python language uses the following keywords which are not available to users to use them as identifiers.

Read more »

Python Tutorials: Identifier In Python

An identifier is a name having a few letters, numbers and special characters _ (underscore).It should always start with a non-numeric character.It is used to identify a variable, function, symbolic…

Read more »

Python Tutorials: Executing Python Program

Command Line WindowIDLENotepad or Notepad++PyCharmVisual Studio Code

Read more »

Python Tutorials: Python Virtual Machine

Python Virtual Machine (PVM) is a program which provides programming environment. The role of PVM is to convert the byte code instructions into machine code so the computer can execute…

Read more »

Python Tutorials: How Python Works

How Python Works? Byte Code – Byte Code represents the fixed set of instruction created by Python developers representing all type of operations like arithmetic operations, comparison operation, memory related…

Read more »

Python Tutorials: Introduction to Python

What is Python ? Python is a clear and powerful object-oriented programming language, comparable to Perl, Ruby, or Java.Python is a programming language that combines features of C and Java….

Read more »

How to Fix MySql port 3306 already in use Error/another instance already running.

There are two types of errors  which occur in MySql are as follows:- Another instance is already running:- This error occurs when MySql has been installed by you in command-line…

Read more »

Top 5 Code Coverage Tools | Best Test Coverage Tools

What is Code Coverage?Code Coverage is a software which is used by the programmer.Code Coverage are mainly used for measuring the Lines, Blocks and Arc which they have added in…

Read more »

Python Interview Questions and Answer Part – 2

Which argument would you use in a Python function to obtain a dictionary of all the named arguments passed? Keyword Arguments (**kwargs) (Ans) *args The NoneType argument Regular function arguments…

Read more »

Python Interview Questions and Answer Part – 1

What Python function is used to open files? open_file() file() new_file() open() (Ans) What does the pass keyword do? Passes control to another function Continues to the next iteration of…

Read more »

Python Tutorials: Web References & Cheatsheet

https://www.learnbyexample.org/python/ Best Books for Learning Python https://www.programiz.com/python-programming/variables-datatypes https://data-flair.training/blogs/python-string/ https://www.journaldev.com/26711/python-logical-operators https://www.geeksforgeeks.org/python-list/ https://www.programiz.com/python-programming/dictionary https://www.learnbyexample.org/python-if-else-elif-statement/ https://www.programiz.com/python-programming/if-elif-else https://www.askpython.com/python/python-functions https://www.learnbyexample.org/python-functions/ https://www.learnbyexample.org/python-classes-and-objects/ https://realpython.com/courses/ https://www.learnbyexample.org/python-file-handling/ https://www.roytuts.com/python-web-application-crud-example-using-flask-and-mysql/

Read more »

Python Tutorials: What is List of Popular Editor for Python?

Visual Studio Code PyCharm Commmunity Version Thonny Atom Sublime Text 3 IDLE Online Compiler from Programiz

Read more »

Python Tutorials: How to use pip command to Python3.x instead of Python2.7?

First of all, pip is made for Python2.x and pip3 is made for Python3.x. Thus you need to select wisely which version of module you are installing. Installing through pip3…

Read more »

Python Tutorials: List of python3 Options and arguments command lines

usage: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 [option] … [-c cmd | -m mod | file | -] [arg] … Options and arguments (and corresponding environment variables): -b : issue warnings about str(bytes_instance), str(bytearray_instance) and…

Read more »

Python Tutorials: List of Python Environment Variables

Here are important environment variables, which can be recognized by Python − Sr.No. Variable & Description 1 PYTHONPATHIt has a role similar to PATH. This variable tells the Python interpreter…

Read more »

How to verify of cobertura.jar file is loaded into jvm

scmuser created the topic: How to verify of cobertura.jar file is loaded into jvm How to verify of cobertura.jar file is loaded into jvm? I have instrumented class but Automated…

Read more »

Could not find or load main class net.sourceforge.cobertura.instrument

scmuser replied the topic: Could not find or load main class net.sourceforge.cobertura.instrument Still could not resolve the issues as below; [code language=”css”] C:\Users\rkumar11>cd C:\cobertura [/code] [code language=”css”] C:\cobertura>cobertura-check.bat Error: Could…

Read more »

A simple Ruby method to send email

scmuser created the topic: A simple Ruby method to send email A simple Ruby method to send email [code language=”css”] require ‘net/smtp’ def send_email(to,opts={}) opts[:server] ||= ‘localhost’ opts[:from] ||= ’email@example.com’…

Read more »

Add each array element to the lines of a file in ruby

scmuser created the topic: Add each array element to the lines of a file in ruby Add each array element to the lines of a file in ruby Either use…

Read more »

What is the way to iterate through an array in Ruby?

scmuser created the topic: What is the way to iterate through an array in Ruby? What is the way to iterate through an array in Ruby? This will iterate through…

Read more »

Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed

scmuser created the topic: Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed Create a Ruby Array [code language=”css”]…

Read more »

Common ways to read a file in Ruby?

scmuser created the topic: Common ways to read a file in Ruby? [code language=”css”] File.open(“my/file/path”, “r”) do |f| f.each_line do |line| puts line end end # File is closed automatically…

Read more »

How to process every line in a text file with Ruby

scmuser created the topic: How to process every line in a text file with Ruby Example 1 [code language=”css”] # ruby sample code. # process every line in a text…

Read more »