Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdfcb932

Browse files
committed
2024/03/15 - Adding keyword demo python code along with renaming of files
1 parentb025f61 commitdfcb932

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ def _dictionary_data_type_demo() -> None:
134134
def_set_data_type_demo()->None:
135135
set1= {1,1,"Rohit"}
136136
print("set1 ",set1)
137+
set1.add("Pooja")
138+
print("set1 after adding element 'Pooja' ",set1)
139+
140+
set1.add("Pooja")
141+
print("set1 after adding same element 'Pooja' ",set1)
137142

138143
print("**"*25)
139144

‎concepts/PythonDemo03_Keywords.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file gives demo about different keywords
2+
3+
# how to list python keywords
4+
# option 1 - using help functions
5+
6+
help("keywords")
7+
8+
# option 2 - using keyword library
9+
importkeyword
10+
11+
# displaying the complete list using "kwlist()."
12+
print("The set of keywords in this version is: ")
13+
print(keyword.kwlist)
14+
15+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp