Category Archives: Language

Mission Machine Learning

Pagerank Algorithm Eigenvalue

 

Square Matrices

 

 

Geometric Interpretation

 

Eigenvalue:

https://www.khanacademy.org/math/linear-algebra/alternate-bases/eigen-everything/v/linear-algebra-introduction-to-eigenvalues-and-eigenvectors

 

For Loops in Python

 

 

 

 

 

Python String formatting

Playing With String in Function of Python

With First letter capital:

Converting string to int:

For Python 1 and 2

 

 

Python String Input Need To Clear From Internet

 

Python Function Calling

 

 

 

 

 

 

  • Check if a value is of a certain type with:
  1. isinstance(“abc”, str)
  2. isinstance([1, 2, 3], list)

or

  1. type(“abc”) == str
  2. type([1, 2, 3]) == lst

Python Function

 

Positive/Negative Indexes, Slicing of Tuples

 

Working with lists and append

Question:Append the first item of weekend to workdays

 

 

Dictionary in Python

Assign a dictionary variable day_temperatures.The dictionary should contain three keys ‘morning’,’noon’and evening and each key should containa tuple as value. each tuple should contain three floats.

 

 

Difference between tuple and list in python

 

OOP concept clearings from some MOOC courses

Code:

Student.java

 


 

StudentTest.java

 

 

 

Started My Java Revise and Python Learning

Need to revise everything.

Interface in C# + abstract in C#

Interface always starts with I . It is the naming convention.

 

In a more basic way to explain: An interface is sort of like an empty muffin pan. It’s a class file with a set of method definitions that have no code.

An abstract class is the same thing, but not all functions need to be empty. Some can have code. It’s not strictly empty.

Why differentiate: There’s not much practical difference in Python, but on the planning level for a large project, it could be more common to talk about interfaces, since there’s no code. Especially if you’re working with Java programmers who are accustomed to the term.

shareimprove this answer

Example:

Explicit Interface Implementation:

 

Interface vs Abstract

 

 

Collection Initializer

codes:

 

C# Object Initializer

https://www.tutorialspoint.com/csharp_online_training/c_object_initializer.asp

 

 

Best:

From the best video and little bit mosh I have written the code below:

without object initializer:

 

with object initializer:

 

 

with object initializer: