Python

Python hex() — step-by-step Python tutorial on Progressive Robot

Python hex()

URL: https://www.progressiverobot.com/python-hex/ Python hex() function is used to convert an integer to a lowercase hexadecimal string prefixed with "0x". We can also pass an object to hex() function, in that case the object must have __index__() function defined that returns integer. The input integer argument can be in any base such as binary, octal etc. […]

Read more
Python Set — step-by-step Python tutorial on Progressive Robot

Python Set

URL: https://www.progressiverobot.com/python-set/ In this tutorial we are going to learn Python Set. In our previous article we learnt about Python String. You can learn it from [here](/community/tutorials/python-string). !Python Set, python set example Python Set Python Set is an unordered collection of unique elements. Suppose you have a list and you need only the unique items […]

Read more
Python String replace() — step-by-step Python tutorial on Progressive Robot

Python String replace()

URL: https://www.progressiverobot.com/python-string-replace/ Python string replace() function is used to create a string by replacing some parts of another [string](/community/tutorials/python-string). Python String replace Python String replace() function syntax is: str.replace(old, new[, count]) The original string remains unmodified. The new string is a copy of the original string with all occurrences of substring _old_ replaced by _new_. […]

Read more
Python ValueError Exception Handling Examples — step-by-step Python tutorial on Progressive Robot

Python ValueError Exception Handling Examples

URL: https://www.progressiverobot.com/python-valueerror-exception-handling-examples/ 1. What is Python ValueError? Python ValueError is raised when a function receives an argument of the correct type but an inappropriate value. Also, the situation should not be described by a more precise exception such as IndexError. 2. ValueError Example You will get ValueError with mathematical operations, such as square root of […]

Read more
Seaborn Distplot: A Comprehensive Guide — step-by-step Python tutorial on Progressive Robot

Seaborn Distplot: A Comprehensive Guide

URL: https://www.progressiverobot.com/seaborn-distplot/ Hey, folks! In this article, we will be focusing on Seaborn Distplot in detail. What is a Seaborn Distplot? A Distplot or distribution plot, depicts the variation in the data distribution. Seaborn Distplot represents the overall distribution of continuous data variables. The Seaborn module along with the Matplotlib module is used to depict […]

Read more
如何在Ubuntu 18.04上安装Python 3并建立本地编程环境 — step-by-step Linux tutorial on Progressive Robot

如何在Ubuntu 18.04上安装Python 3并建立本地编程环境

Python是一种灵活多样的编程语言。它的用途广泛,在脚本、自动化、数据分析、机器学习和后端开发方面都具有优势。Python于1991年首次发行,名字的灵感来源于英国喜剧团体“Monty Python”,因此Python开发团队希望让Python用起来很有趣。易于安装配置、代码风格相对简单直接、有即时的反馈和报错,这些特性让Python成为编程初学者的一个很好选择,也同样适合有经验的程序员。[Python…

Read more
CHAT