Python

Python Built-in Methods – Python list() Function

Python list() Function Creates a list from an iterable Usage The list() function creates a list from an iterable. The iterable may be a sequence (such as a string, tuple or range) or a collection (such as a dictionary, set or frozen set) There is another way you can create lists based on existing lists. It is called List comprehension. Syntax list(iterable) Parameter Condition Description iterable Required A sequence …

Python Built-in Methods – Python int() Function

Python int() Function Converts a string or number to an integer Usage The int() function converts the specified value to integer. A value can be a number or a string, except complex numbers. You can also specify the base (number formats like binary, hex, octal etc.) of the given value. Syntax int(value,base) Parameter Condition Description value Optional A number or a string to be converted into …

Python Built-in Methods – Python divmod() Function

Python divmod() Function Returns quotient and remainder of division Usage The divmod() function returns a tuple containing the quotient and the remainder when dividend is divided by divisor. Syntax divmod(dividend,divisor) Parameter Condition Description dividend Required The number being divided divisor Required The number doing the dividing Basic Example # Return quotient and remainder when 5 is divided by 2 x …

Python Built-in Methods – Python bin() Function

Python bin() Function Convert an integer number to a binary string Usage The bin() function converts an integer number to a binary string. The result will always be prefixed with ‘0b’. Syntax bin(number) Parameter Condition Description number Required Any integer Examples x = bin(42) print(x) # Prints 0b101010 You can pass a negative number to the function. x = bin(-42) …

Beginners Guide to Python 3 – Python Nested List

Python Nested List A list can contain any sort object, even another list (sublist), which in turn can contain sublists themselves, and so on. This is known as nested list. You can use them to arrange data into hierarchical structures. Create a Nested List A nested list is created by placing a comma-separated sequence of sublists. L = …

How to setup a text classification model in Keras using CNN

(How to setup a text classification model in Keras using CNN) In this Learn through Codes example, How to setup a text classification model in Keras using CNN.  How_to_setup_a_text_classification_model_in_Keras_using_CNN   Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & …

How to setup MLP and CNN for MNIST dataset in Keras

(How to setup MLP and CNN for MNIST dataset in Keras) In this Learn through Codes example, How to setup MLP and CNN for MNIST dataset in Keras.  How_to_setup_MLP_and_CNN_for_MNIST_dataset_in_Keras   Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & …

Visualize Model Training History in Keras in Python

(Visualize Model Training History in Keras in Python) In this Learn through Codes example, How to Visualize Model Training History in Keras in Python.  Visualize_Model_Training_History_in_Keras_in_Python Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & Image Data Analytics as well …

Regression with the Keras in Python

(Regression with the Keras in Python) In this Learn through Codes example, you will learn Regression with the Keras in Python.  Regression_with_the_Keras_in_Python Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & Image Data Analytics as well as Time Series …