0% found this document useful (0 votes)
60 views1 page

Commands What They Refer To / Mean: Python Course by Wael Mrabet

This document provides an overview of basic Python commands and concepts for a Python course taught by Wael Mrabet. It includes a table defining common Python commands like print(), variables, input(), string methods, boolean logic, and conditional statements. The table explains what each command refers to or means, such as using print() to write text, variables to identify and assign values, and if/else statements to execute code conditionally.

Uploaded by

Mrabet Wael
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views1 page

Commands What They Refer To / Mean: Python Course by Wael Mrabet

This document provides an overview of basic Python commands and concepts for a Python course taught by Wael Mrabet. It includes a table defining common Python commands like print(), variables, input(), string methods, boolean logic, and conditional statements. The table explains what each command refers to or means, such as using print() to write text, variables to identify and assign values, and if/else statements to execute code conditionally.

Uploaded by

Mrabet Wael
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Python Course By Wael Mrabet

Commands | What they refer to / mean


print ( " TEXT " ) | To write text or symbols

print ( " TEXT " *10) | To Multiply the text you wanna write

Variable = Value | To identify a variable and give it a value

input("TEXT") | writeln('TEXT')

var = input ("text") | writeln('TEXT') readln(var)

var[0] | first character of the variable

len(var) | gives the length of the variable

var.upper/lower | string method

var.find('L') | find the first occurance of the letter

var.replace('TEXT1' , 'TEXT2') | replace the first text by the second text

2 ** 3 | 2 power 3

True / False | not true / false or TRUE/FALSE

if var: | if variable ( boolean ) is true

else: | if it is not

elif: | if it is not + an other condition

You might also like