File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 448
448
" print(\" string after:\" ,res) "
449
449
]
450
450
},
451
+ {
452
+ "cell_type" : " code" ,
453
+ "execution_count" : 1 ,
454
+ "metadata" : {},
455
+ "outputs" : [
456
+ {
457
+ "name" : " stdout" ,
458
+ "output_type" : " stream" ,
459
+ "text" : [
460
+ " string before: python is a programming language\n " ,
461
+ " string after: PthN IS AA PogrammiG LnguaE\n "
462
+ ]
463
+ }
464
+ ],
465
+ "source" : [
466
+ " n = \" python is a programming language\"\n " ,
467
+ " print(\" string before:\" ,n)\n " ,
468
+ " a =n.split(' ')\n " ,
469
+ " res =[]\n " ,
470
+ " for i in a:\n " ,
471
+ " x =i[0].upper()+i[2:-2]+i[-1].upper()\n " ,
472
+ " res.append(x)\n " ,
473
+ " res=' '.join(res)\n " ,
474
+ " print(\" string after:\" ,res)"
475
+ ]
476
+ },
451
477
{
452
478
"cell_type" : " code" ,
453
479
"execution_count" : null ,
You can’t perform that action at this time.
0 commit comments