Samual Sam has Published 2491 Articles

Type Conversion in Python

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

1K+ Views

Using Python, we can easily convert data into different types. There are different functions for Type Conversion. We can convert string type objects to numeric values, perform conversion between different container types etc. In this section we will see how the conversions can be done using Python. Converting String to ... Read More

How do we use a #line directive in C#?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

126 Views

It lets you modify the compiler's line number and (optionally) the file name output for errors and warnings. Let us see some examples. #line 100 "demo" int a; // CS0168 on line 100 int b; // CS0168 on line ... Read More

Static Keyword in C++

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

13K+ Views

When static keyword is used, variable or data members or functions can not be modified again. It is allocated for the lifetime of program. Static functions can be called directly by using class name. Static variables are initialized only once. Compiler persist the variable till the end of the program. ... Read More

What is the difference between a float, double and a decimal in C#?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

1K+ Views

Float , double and a decimal are all Value Types in C#. Value type variables can be assigned a value directly. They are derived from the class System.ValueType. The value types directly contain data. Float Value Type Float is a 32-bit single-precision floating point type with range 3.4 x ... Read More

Recommended IDEs for C# on Windows/Linux/Mac OS

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

259 Views

The best IDE for C# on Windows is Microsoft Visual Studio. It is an IDE to develop websites, web apps, mobile apps, etc. The following are the features of Visual Studio IDE − Code Editor − Visual Studio has a code editor supporting syntax highlighting and ... Read More

Dynamic Programming in JavaScript

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

2K+ Views

Dynamic programming breaks down the problem into smaller and yet smaller possible sub-problems. These sub-problems are not solved independently. Rather, results of these smaller sub-problems are remembered and used for similar or overlapping sub-problems. Dynamic programming is used where we have problems, which can be divided into similar sub-problems so ... Read More

Underscore(_) in Python

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

531 Views

In Python in some cases we use Single Underscore(_) and some cases we use Double Underscores (__). In Python has following cases, where we use underscore. If we want to store the value of last expression in interpreter. If we want to ignore some values. For declaration of ... Read More

What are the differences between a class and a structure in C#?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

102 Views

Structure In C#, a structure is a value type data type. It helps you to make a single variable hold related data of various data types. The struct keyword is used for creating a structure. To define a structure, you must use the struct statement. The struct statement defines a ... Read More

Ways to sort list of dictionaries by values in Python

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

142 Views

Here one dictionary is given, our task is to sort by their values. Two values are present in this dictionary one is name and another is roll. First we display sorted list by their roll using lambda function and in-built sorted function. Second we display sorted list by the name ... Read More

Plotting solar image in Python

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

253 Views

In Python provides SunPy package for create solar image. In this package has different files which are solar data of proton/electron fluxes from various solar observatory and solar labs. Using pip install sunpy command, we can install sunpy package. Here we plot a sample AIA image. AIA is ... Read More

Advertisements