Author

Bashir Alam

Bashir Alam

Data Analyst and Machine Learning Engineer

at · 187 articles published

Computer Science graduate from the University of Central Asia, currently employed as a full-time Machine Learning Engineer at uExel. His expertise lies in OCR, text extraction, data preprocessing, and predictive models.

Areas of expertise

Certifications & credentials

  • Python with Projects
  • C ProgrammingID: UC-a19ba210-767a-47de-a588-96f03d34a185
  • Master of the Basics Python TkinterID: UC-f065c334-f080-4eef-a112-4d2687053570
  • Frontend EssentialsID: 14427917
Author profile illustration for Bashir Alam — technical writer at GoLinuxCloud

Articles by Bashir Alam

programming

Java Type Casting Explained [Easy Examples]

The Java type casting is a method or process that converts a data type into another data type in both ways manually and automatically.

Bashir Alam8 min read
programming

Python requests

Learn how to use Python requests for HTTPS GET and POST requests. Install requests with pip, check response.status_code, handle 200 responses, use raise_for_status(), set timeouts, and compare requests with urllib and …

Bashir Alam8 min read
programming

Reverse String in Python

Learn how to reverse a string in Python using slicing, reversed() with join(), for loop, and while loop. Understand why string[::-1] is the simplest method and avoid common mistakes.

Bashir Alam5 min read
programming

Python pow() Function

Learn how Python pow() works with examples. Use pow(base, exp), the ** power operator, math.pow(), and pow(base, exp, mod) for modular exponentiation. Understand return types, negative powers, errors, and common …

Bashir Alam7 min read
programming

Round Up in Python

Learn how to round up in Python using math.ceil(), decimal rounding, ceiling division, NumPy ceil(), and custom multiples. Understand why round() is not the same as rounding up and avoid common rounding mistakes.

Bashir Alam7 min read
programming

Remove Element from List in Python

Learn how to remove elements from a Python list using remove(), pop(), del, clear(), and list comprehension. Remove by value, index, slice, condition, duplicate values, or all items with practical examples.

Bashir Alam6 min read
programming

Write CSV in Python

Learn how to write CSV files in Python using the built-in csv module. See examples with csv.writer, writerow(), writerows(), headers, append mode, DictWriter, custom delimiters, newline handling, and pandas to_csv().

Bashir Alam6 min read
programming

Python Reverse Range

Learn how to use Python range in reverse order. See examples with range(start, stop, -1), reversed(range()), reverse for loops, backward counting, custom steps, indexes, and common mistakes.

Bashir Alam4 min read
programming

Python pwd Module

Learn how to use the Python pwd module on Unix/Linux systems. See examples for pwd.getpwnam(), pwd.getpwuid(), pwd.getpwall(), struct_passwd fields, current user lookup, Windows availability, and common errors.

Bashir Alam6 min read
programming

Python struct Module

Learn how to use the Python struct module to pack and unpack binary data. See examples for struct.pack(), struct.unpack(), struct.calcsize(), byte order, format strings, pack_into(), unpack_from(), and common errors.

Bashir Alam7 min read
programming

Python try except

Learn how Python try except works with simple examples. See how to catch specific exceptions, handle multiple exceptions, use else and finally, raise exceptions, and avoid common mistakes.

Bashir Alam8 min read
programming

Python input() Function

Learn how Python input() works, why it returns a string, how to convert input to int or float, handle non-numeric values, validate user input, take multiple inputs, and use input with asyncio.

Bashir Alam5 min read
programming

Python UUID

Learn how to generate UUIDs in Python using the built-in uuid module. See examples of uuid4(), uuid1(), uuid3(), uuid5(), GUIDs, short UUIDs, UUID strings, hex values, and when to use each version.

Bashir Alam6 min read
programming

Python strip()

Learn how Python strip() works with examples. Remove leading and trailing whitespace, strip specific characters, compare strip(), lstrip(), and rstrip(), and avoid common mistakes with prefixes and suffixes.

Bashir Alam6 min read
programming

Simple Linear Regression in Python

Learn simple linear regression in Python using pandas, scikit-learn, and matplotlib. Train a model, make predictions, evaluate accuracy, plot the regression line, and save predictions to a CSV file.

Bashir Alam6 min read
programming

Python zip() Function

Learn how the Python zip() function works with lists, tuples, dictionaries, and loops. See how to handle different lengths with strict=True and zip_longest().

Bashir Alam8 min read
programming

Python Substring

Learn how to get and check substrings in Python using slicing, the in operator, find(), index(), count(), and replace(). See extraction before or after a character and common mistakes.

Bashir Alam5 min read
programming

Python super()

Learn how Python super() works with inheritance. See how to use super().__init__() in child classes, call parent methods, understand MRO, and avoid common multiple inheritance mistakes.

Bashir Alam6 min read
programming

Python Symmetric Difference

Learn symmetric difference in Python using set.symmetric_difference() and the ^ operator. See examples, difference vs symmetric difference, multiple sets, lists, tuples, and common mistakes.

Bashir Alam6 min read
programming

Python switch case

Learn how to write switch case logic in Python using match case, if-elif statements, and dictionary mapping. See Python switch statement examples, default cases, multiple cases, and when to use each approach.

Bashir Alam7 min read
programming

Python Ternary Operator

Learn how the Python ternary operator works using value_if_true if condition else value_if_false. See simple examples, nested ternary expressions, list comprehension usage, and common mistakes.

Bashir Alam6 min read
programming

Python Sort List

Learn how to sort a list in Python using list.sort() and sorted(). See examples for ascending order, descending order, strings, numbers, custom key functions, list of lists, tuples, dictionaries, None values, and common …

Bashir Alam6 min read
programming

Python startswith()

Learn how Python startswith() works with simple examples. Check if a string starts with a prefix, use start and end positions, match multiple prefixes with a tuple, and perform case-insensitive startswith checks.

Bashir Alam4 min read
programming

Python Static Method

Learn what a static method is in Python and how to use @staticmethod. See examples, static method vs class method vs instance method, when to use static methods, and common mistakes.

Bashir Alam6 min read
programming

Python writelines() Method

Learn Python writelines() method with examples. Write a list of strings to a file, add newline characters, append lines, compare write() vs writelines(), and avoid common mistakes.

Bashir Alam4 min read
programming

Python Optional Arguments

Learn how optional arguments work in Python functions, including default values, optional parameters, keyword arguments, *args, **kwargs, None defaults, and common mistakes.

Bashir Alam6 min read
programming

Python Constructor: __init__ Method Explained

Learn Python constructors using the __init__ method with examples for self, parameters, default values, validation, copying mutable arguments, object creation, inheritance, dataclasses, __new__, and common constructor …

Bashir Alam10 min read
programming

Python Operators

Learn Python operators with simple explanations, including arithmetic, comparison, assignment, compound assignment, logical, bitwise, membership, identity, and operator precedence.

Bashir Alam7 min read
programming

Python None Keyword

Learn what None means in Python, how NoneType works, how to check if a value is None, and when to use None for missing values, function returns, and default arguments.

Bashir Alam8 min read
programming

Python Multiline Comments

Learn how to write multiline comments in Python using multiple # comments. Understand why triple-quoted strings are not true comments, how docstrings differ from comments, and how to comment multiple lines in VS Code, …

Bashir Alam5 min read