Tôi đang tạo ra một bộ trong Python để chứa tất cả các biểu tượng trên bàn phím của tôi, nhưng rõ ràng là một vài vấn đề. Có cách nào để đưa tất cả chúng vào đó mà không gặp vấn đề gì không?
Đây là bộ của tôi:
symbols = {`,~,!,@,#,$,%,^,&,*,[,],_,-,+,=,{,[,},},|,\,:,;,",',,.,?,/}
Để khắc phục nhận xét hầu hết, vì trong Python #
là để bình luận, tôi đã bao gồm mọi thứ như vậy:
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
Điều này hoạt động cho nhân vật đó, nhưng bây giờ tôi đã có thể thấy một vấn đề khi tôi bắt gặp '
và \
. Có cách nào tốt hơn để thực hiện bộ này không?
38symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
50symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
#
6String is not accepted.
4
53symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
Input : Geeks$For$Geeks
Output : String is not accepted.
Input : Geeks For Geeks
Output : String is accepted
1
58symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
Input : Geeks$For$Geeks
Output : String is not accepted.
Input : Geeks For Geeks
Output : String is accepted
4
72 symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
Input : Geeks$For$Geeks
Output : String is not accepted.
Input : Geeks For Geeks
Output : String is accepted
6
String is not accepted.3
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
96#
3#
7 symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
99Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted00
38symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
50symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
#
6String is not accepted.
4
53symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
Input : Geeks$For$Geeks
Output : String is not accepted.
Input : Geeks For Geeks
Output : String is accepted
1
58symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
Input : Geeks$For$Geeks
Output : String is not accepted.
Input : Geeks For Geeks
Output : String is accepted
4
72 symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
Input : Geeks$For$Geeks
Output : String is not accepted.
Input : Geeks For Geeks
Output : String is accepted
6
String is not accepted.3
Examples :
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted
96symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
#
3#
7
99symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
Input : Geeks$For$Geeks
Output : String is not accepted.
Input : Geeks For Geeks
Output : String is accepted
00 Make a regular expression[regex] object of all the special characters that we don’t want, then pass a string in search method. If any one character of string is matching with regex object then search method returns a match object otherwise return None.
Below is the implementation :
C++
#include
#include
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
0 symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
1 symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
2symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
3 symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
4symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
5symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
7symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
8symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
9symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted1
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted2
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted3
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted4
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted5
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted6
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted8
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted3
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted4
String is not accepted.1
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted6
String is not accepted.3
String is not accepted.4
String is not accepted.5
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
5symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6String is not accepted.8
String is not accepted.9
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted6
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6string is not accepted2
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6string is not accepted4
string is not accepted5
String is not accepted.3
Python3
string is not accepted7
string is not accepted8
string is not accepted9
#
0symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6#
22____53 #
4#
5#
6#
7#
8symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted1
'
1#
3#
3 '
4'
5Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted3
'
7#
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted5
#
8symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted8
\
3Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted3
'
7#
6String is not accepted.1
#
8Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted1
#include
0#
3#
3 #include
3 \
3symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6#include
6#
3 String is not accepted.9
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6#include
0PHP
#include
1
#include
2 #include
3#include
4#
8
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
5symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6#include
8 #include
9#
7symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
01symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
02#include
4symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
9symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted1
#
6#include
8#
8Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted3
'
7#
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted5
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
9symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted8
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted3
'
7#
6String is not accepted.1
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
9String is not accepted.3
#include
4
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
24symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
25Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted6
#include
3#include
4
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
9symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
30Đầu ra
String is not accepted.
Phương thức: & nbsp; để kiểm tra xem một ký tự đặc biệt có mặt trong một chuỗi nhất định hay không, trước tiên nhóm tất cả các ký tự đặc biệt là một tập hợp. Sau đó sử dụng cho vòng lặp và nếu các câu lệnh kiểm tra các ký tự đặc biệt. Nếu bất kỳ ký tự đặc biệt nào được tìm thấy thì hãy tăng giá trị của c. Cuối cùng, kiểm tra xem giá trị C có lớn hơn 0 hay không thì chuỗi in không được chấp nhận nếu không chuỗi in được chấp nhận. & NBSP; To check if a special character is present in a given string or not, firstly group all special characters as one set. Then using for loop and if statements check for special characters. If any special character is found then increment the value of c. Finally, check if the c value is greater than zero then print string is not accepted otherwise print string is accepted.
C++
#include
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
32symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
0 symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
1 symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
2String is not accepted.4
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
37symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
38symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
39String is not accepted.9
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted6
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
38String is not accepted.4
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
44symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
38symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
46symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
47symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
48symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
38symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
50#
6String is not accepted.4
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
53symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
38symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
5symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted1
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
58symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
5symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
61symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
62symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6String is not accepted.3
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
38String is not accepted.3
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
38Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted1
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
69symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted4
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
72 Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted6
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
38String is not accepted.3
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
38Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted8
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
5symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted4
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
81Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted6
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
38String is not accepted.3
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6string is not accepted4
string is not accepted5
String is not accepted.3
Python3
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
89#
3String is not accepted.9
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
92symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
93#
3symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
95symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
96#
3#
7 symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
99Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted00
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
50 ______202symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted1
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted10
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted03
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted12
________ 161 ________ 193 ________ 215 ________ 53 ________ 217 & nbsp; & nbsp;
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted1
Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted19
symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6'
7#
6symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
72#
8Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted8
\
3symbols = {'`','~','!','@','#','$','%','^','&','*','[',']','_','-','+','=','{','[','}','}','|','\',':',';','"',''','','.','?','/'}
6'
7#
6Input : Geeks$For$Geeks Output : String is not accepted. Input : Geeks For Geeks Output : String is accepted30
#
8
Đầu ra
string is not accepted