import os
import namer#the module imported created by myself
'''
from namer import nameit 

#can be done like this also to get rid of the 2nd line 

namit("Sudarshan")

#can be used directly

'''
os.system('clear')
#here os is also a module ..we have imported it and used to clear the screen
#we can create the own module 
namer.nameit("Sudarshan")#calling nameit func created in module namer 

#end of class 23
Exemple #2
0
def submit():
    greet = nameit(my_box.get())
    my_label.config(text=greet)
Exemple #3
0
import os
from namer import nameit

nameit("Ian")
Exemple #4
0
    print(key + " likes " + value + "!")
#####################
#Creating Functions
#####################


def nameit(
    name3
):  #Here name3 is a place holder for when you want to pase a variable into the function
    print("Hello " + name3 +
          "!")  #The function has been defined but it hasn't been used yet


######
#To use the function->
nameit("Hashim")  #this is how it is used after being defined


#########
def nameit2(first_name, last_name
            ):  #Same story here but now it is expecting more than one variable
    print("Hello " + first_name + " " + last_name + "!")


nameit2(
    "Hashim", "Mohamed"
)  #Same thing more variables but unless both parameters are passed it won't work.


##########
def mathit(num6, num7):
#  $ cd "/c/Users/Nick/PycharmProjects/AA Python Programming 2021"      to get to the directory
#
# ------------------------------------------------------------------------------------------------------------
#            Git push commands
# git add .
# git commit -am "SuitableText"
# git push
# <password, tavr>
#
#
# Git Bash Shortcut path     "c:\Users\Nick\PycharmProjects\AA Python Programming 2021"
#						https://github.com/morsed2/Python-2021/tree/master
#
# ------------------------------------------------------------------------------------------------------------

import os
# import namer		# Golbal import
from namer import nameit

os.system("clear")
print("\n\n\n" + name + "\t\t" + Filename + "\t", Tomboy + "\n\n")
print('-----------------------------------------------------------\n\n')

# Modules
# 2 types
#	Python - lots, sorta builtin
#	home made

print('Hello')
nameit('Steve')