Python: Difference between revisions

From DWIKI
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
*[http://www.python.org/ Homepage]  
*[http://www.python.org/ Homepage]  
*[https://www.w3schools.com/python/ w3schools]
*[https://www.w3schools.com/python/ w3schools]
*[http://www.rushessay.com/custom_essay.php essay]
*[https://www.tutorialspoint.com/python https://www.tutorialspoint.com/python]  
*[https://www.tutorialspoint.com/python https://www.tutorialspoint.com/python]  
*[https://wiki.python.org/moin/BeginnersGuide/Programmers Beginners guide]
*[https://wiki.python.org/moin/BeginnersGuide/Programmers Beginners guide]
=Data types=
==Tuples==
===Tuples methods===


=Regex=
=Regex=
Line 17: Line 20:
===List operators===
===List operators===


=Regular expressions==
=Regular expressions=
https://docs.python.org/3/library/re.html
https://docs.python.org/3/library/re.html


Line 26: Line 29:


===update-alternatives: error: no alternatives for python===
===update-alternatives: error: no alternatives for python===
  update-alternatives --install /usr/bin/python python $(which python3) 3
  update-alternatives --install /usr/bin/python python $(which python3) 1


==Leave virtualenv==
==Leave virtualenv==

Latest revision as of 17:09, 14 November 2023

Links

Data types

Tuples

Tuples methods

Regex

Strings

Length of string

len(s)

Lists

List operators

Regular expressions

https://docs.python.org/3/library/re.html

FAQ

-bash: python: command not found

Try

update-alternatives --config python

update-alternatives: error: no alternatives for python

update-alternatives --install /usr/bin/python python $(which python3) 1

Leave virtualenv

deactivate